当前位置:网站首页>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)
边栏推荐
猜你喜欢
![[speech processing] speech signal denoising and denoising based on MATLAB low-pass filter [including Matlab source code 1709]](/img/f4/4d09dc05f5789b980ebd23cc352f8b.jpg)
[speech processing] speech signal denoising and denoising based on MATLAB low-pass filter [including Matlab source code 1709]

Tensor attribute statistics

Paddy serving v0.9.0 heavy release multi machine multi card distributed reasoning framework

One article deals with the microstructure and instructions of class

Arduino 测量交流电流

Simple and beautiful method of PPT color matching

关于MySQL的30条优化技巧,超实用
![[untitled]](/img/8c/607776e79d66acf9282dca127e12e1.jpg)
[untitled]

VOT Toolkit环境配置与使用

Detailed explanation of pointer and array written test of C language
随机推荐
Global and Chinese market of diesel fire pump 2022-2028: Research Report on technology, participants, trends, market size and share
Common model making instructions
判斷二叉樹是否為完全二叉樹
Nangou Gili hard Kai font TTF Download with installation tutorial
Starting from 1.5, build a micro Service Framework -- log tracking traceid
2022 registration examination for safety management personnel of hazardous chemical business units and simulated reexamination examination for safety management personnel of hazardous chemical busines
Global and Chinese market of water treatment technology 2022-2028: Research Report on technology, participants, trends, market size and share
Simple and beautiful method of PPT color matching
audiopolicy
fibonacci search
C Primer Plus Chapter 9 question 9 POW function
Event trigger requirements of the function called by the event trigger
二叉树递归套路总结
一文搞定class的微觀結構和指令
Arduino measures AC current
Un article traite de la microstructure et des instructions de la classe
The method and principle of viewing the last modification time of the web page
513. Find the value in the lower left corner of the tree
Leetcode weekly The 280 game of the week is still difficult for the special game of the week's beauty team ~ simple simulation + hash parity count + sorting simulation traversal
Element operation and element waiting in Web Automation