当前位置:网站首页>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)
边栏推荐
- 一文搞定class的微觀結構和指令
- Metasploit (MSF) uses MS17_ 010 (eternal blue) encoding:: undefined conversionerror problem
- 实现反向代理客户端IP透传
- Editor extensions in unity
- 判斷二叉樹是否為完全二叉樹
- 【Note17】PECI(Platform Environment Control Interface)
- 我对新中台模型的一些经验思考总结
- [speech processing] speech signal denoising based on Matlab GUI Hanning window fir notch filter [including Matlab source code 1711]
- TCC of distributed solutions
- 如何快速理解复杂业务,系统思考问题?
猜你喜欢
LeetCode102. Sequence traversal of binary tree (output by layer and unified output)
Matlab smooth curve connection scatter diagram
Masked Autoencoders Are Scalable Vision Learners (MAE)
Finally understand what dynamic planning is
Unity Max and min constraint adjustment
一文搞定垃圾回收器
[speech processing] speech signal denoising based on Matlab GUI Hanning window fir notch filter [including Matlab source code 1711]
MoCo: Momentum Contrast for Unsupervised Visual Representation Learning
One article deals with the microstructure and instructions of class
Three.js-01 入门
随机推荐
Boring boring
Selenium+pytest automated test framework practice
2.13 summary
Codeforces Global Round 19
鏈錶之雙指針(快慢指針,先後指針,首尾指針)
[speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
Double pointer of linked list (fast and slow pointer, sequential pointer, head and tail pointer)
如何快速理解复杂业务,系统思考问题?
东南亚电商指南,卖家如何布局东南亚市场?
leecode-学习笔记
Methods modified by static
30 optimization skills about mysql, super practical
Using LNMP to build WordPress sites
Ieventsystemhandler event interface
One article deals with the microstructure and instructions of class
[secretly kill little buddy pytorch20 days] - [Day2] - [example of picture data modeling process]
VOT Toolkit环境配置与使用
Error when LabVIEW opens Ni instance finder
Starting from 1.5, build a micro Service Framework -- log tracking traceid
Activate function and its gradient