当前位置:网站首页>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 based on Matlab GUI Hanning window fir notch filter [including Matlab source code 1711]
- Lesson 1: serpentine matrix
- Media query: importing resources
- Starting from 1.5, build a micro Service Framework -- log tracking traceid
- Leecode learning notes
- First, redis summarizes the installation types
- Leetcode buys and sells stocks
- Negative sampling
- Thoroughly understand JVM class loading subsystem
- How to quickly understand complex businesses and systematically think about problems?
猜你喜欢

Element operation and element waiting in Web Automation

CorelDRAW plug-in -- GMS plug-in development -- new project -- macro recording -- VBA editing -- debugging skills -- CDR plug-in (2)

【Note17】PECI(Platform Environment Control Interface)

Three. Js-01 getting started

Double pointeur de liste liée (pointeur rapide et lent, pointeur séquentiel, pointeur de tête et de queue)

Common model making instructions
![[screen recording] how to record in the OBS area](/img/34/bd06bd74edcdabaf678c8d7385cae9.jpg)
[screen recording] how to record in the OBS area

Activate function and its gradient

Metasploit (MSF) uses MS17_ 010 (eternal blue) encoding:: undefined conversionerror problem

Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
随机推荐
Douban scoring applet Part-2
Negative sampling
fibonacci search
Déterminer si un arbre binaire est un arbre binaire complet
【Note17】PECI(Platform Environment Control Interface)
关于MySQL的30条优化技巧,超实用
npm ELECTRON_ Mirror is set as domestic source (npmmirror China mirror)
【无标题】
Starting from 1.5, build a micro Service Framework -- log tracking traceid
傅里叶分析概述
Google Maps case
LeetCode145. Post order traversal of binary tree (three methods of recursion and iteration)
The introduction to go language is very simple: String
Yiwen gets rid of the garbage collector
Common model making instructions
Global and Chinese market of diesel fire pump 2022-2028: Research Report on technology, participants, trends, market size and share
VOT Toolkit环境配置与使用
2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
透彻理解JVM类加载子系统
Basic knowledge of database (interview)