11-10-2023 04:15 AM
I need to process a 12-bit grayscale image saved in png format with Python. A monochromatic 12-bit camera was used as the signal source. The image file was created with IMAQ Write File2.vi
. The maximum pixel value is 419 counts.
When I load the image with Python3 imageio-2.32.0
imageio.imread("testimagefile")
, it seems that the image is scaled automatically, the maximum value is now 55019 counts. Does IMAQ Write File2.vi
store PNG Files with some kind of scaled flag? Does anyone have any ideas on how to get the original values?
Solved! Go to Solution.
11-13-2023 05:42 AM
Hi!
It was answered and solved here in the past: How do you load signed 16 bit PNG file outside of LabVIEW?
Python script from dgagnon05 in the attachment.
Andrey.
11-15-2023 04:20 AM
This is a really in-depth analysis. I assume, even Imagio developers are not aware of it.
Thanks a lot!