Reputation: 11
I have 32 bit grayscale image data saved in tif files. It stems from background corrected CCD data so the values can also be negative.
Working in Python, scipy.misc.imread can load the file with no problems. With opencv however, I didn't manage to get the correct data, it loads all values as NaN, no matter what options I pass imread.
My main code is in C++, so I cannot use SciPy and have so far been happy with OpenCV but here it fails me.
Any suggestions?
Upvotes: 1
Views: 3972
Reputation: 129
Late to the game, I think this is your issue: What happens when show a signed image in OpenCV?
-because I'm running into it trying to read 32 bit signed PNGs and OpenCV is (apparently) truncating them.
Upvotes: 1