当前位置:网站首页>The PNG image is normal when LabVIEW is opened, and the full black image is obtained when Photoshop is opened

The PNG image is normal when LabVIEW is opened, and the full black image is obtained when Photoshop is opened

2022-07-05 23:12:00 LabVIEW development

LabVIEW open PNG The image is normal and Photoshop Open to get a completely black image

Read a 10-bit And save it as 16-bit Of PNG file . Use Vision Assistant or LabVIEW When it is turned on , It's all right ; But with Photoshop or Windows Picture and Fax Viewer On , The whole image is black .

answer : Please try multiplying the original image by 2 And then re archive . In this way, the value of each point in the image can be translated 2 To the power of . This is a common method used by many image processing software to display images .

When NI Vision Show a by default 16-bit In the picture , NI-Vision The full range of values of the image will be checked 〈full dynamic range〉 And convert the value to 8-bit On display 〈 In this way, the data of each pixel can be compressed to be displayed in Windows The scope of the 〉. On the other hand ,Photoshop And other image display software will just 16-bit Data translation 8 bit Then it will be displayed directly . Although this method is very common , But it will cause the loss of image resolution , The reason is that the least significant bit data is deleted when translating the data 《truncating the least significant bit》. therefore , If you have any 10-bit Image , translation 8 bit after , Will get only 2bit Image of and with 8 bit Express , So the new image looks black .

edit

Add picture comments , No more than 140 word ( Optional )

LabVIEW、LabVIEW Development 、LabVIEW Programming 、LabVIEW Program

Examples and information mentioned above , Both in word In the attachment in , Click to download . Learn more , Can you contact us .

LabVIEW open PNG The image is normal and Photoshop Open to get a completely black image - Beijing Hanwen Wangxing Technology Co., Ltd (bjcyck.com)

 

原网站

版权声明
本文为[LabVIEW development]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207052252558142.html