当前位置:网站首页>LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像
LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像
2022-07-05 22:53:00 【LabVIEW开发】
LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像
读取一个 10-bit的影像并将其保存为16-bit 的 PNG 文件。使用 Vision Assistant 或 LabVIEW 开启它时,一切都正常; 然而用 Photoshop 或是Windows Picture and Fax Viewer 开启时,整个图像全是黑的。
解答: 请试着将原图像乘上 2 的次方倍再重新存档。 这样可以将图像中每一个点的数值平移 2 的次方倍。这是许多影像处理软件在显示影像时的常见方法。
当 NI Vision以默认方式显示一个 16-bit 图像时, NI-Vision会检查图像的完整数值范围〈full dynamic range〉并且将数值转换为 8-bit 在显示出来〈这样可以将每一个像素点的数据压缩为可以显示在Windows 的范围〉。另一方面,Photoshop 与其他的图像显示软件只是将 16-bit 的数据平移 8 bit 后就直接显示出来。 这个方式虽然很常见,但是会造成影像分辨率的损失,理由是平移资料时删去了最低有效位的资料《truncating the least significant bit》。 因此,若有10-bit 的图像,平移 8 bit 之后,会得到只有 2bit 的图像并以 8 bit 表示,因此新影像看起来是黑的。
编辑
添加图片注释,不超过 140 字(可选)
LabVIEW、LabVIEW开发、LabVIEW编程、LabVIEW程序
上文中提到的例子和资料,均在word中的附件里,可点击下载。进一步了解,可联系们。
LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像 - 北京瀚文网星科技有限公司 (bjcyck.com)
边栏推荐
- 【Note17】PECI(Platform Environment Control Interface)
- Metasploit (MSF) uses MS17_ 010 (eternal blue) encoding:: undefined conversionerror problem
- Common model making instructions
- Use of shell:for loop
- Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
- openresty ngx_ Lua request response
- Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
- Using LNMP to build WordPress sites
- 实现反向代理客户端IP透传
- Paddle Serving v0.9.0 重磅发布多机多卡分布式推理框架
猜你喜欢
Hcip day 12 (BGP black hole, anti ring, configuration)
Un article traite de la microstructure et des instructions de la classe
Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
Negative sampling
VOT Toolkit环境配置与使用
Arduino measures AC current
Vision Transformer (ViT)
2022 registration examination for safety management personnel of hazardous chemical business units and simulated reexamination examination for safety management personnel of hazardous chemical busines
Getting started stm32--gpio (running lantern) (nanny level)
【Note17】PECI(Platform Environment Control Interface)
随机推荐
Alibaba Tianchi SQL training camp task4 learning notes
Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
数据库基础知识(面试)
openresty ngx_ Lua request response
Element positioning of Web Automation
2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
视频标准二三事
TCC of distributed solutions
Hcip day 12 (BGP black hole, anti ring, configuration)
Google Maps case
利用LNMP实现wordpress站点搭建
Arduino measures AC current
Unity Max and min constraint adjustment
d3dx9_ What if 29.dll is missing? System missing d3dx9_ Solution of 29.dll file
The maximum happiness of the party
The method and principle of viewing the last modification time of the web page
我把开源项目alinesno-cloud-service关闭了
使用rewrite规则实现将所有到a域名的访问rewrite到b域名
[speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
Openresty ngx Lua regular expression