Skip to content Skip to sidebar Skip to footer

Python: How To Read In A 16 Bit .png Grayscale Image

I try to read in a 16bit grayscale image .png in python. Neither cv2.imread('test.png', cv2.IMREAD_ANYDEPTH) nor cv2.imread('test.png',-1) is working. After reading in, my array

Solution 1:

It works fine with cv2.imread('test.png', -cv2.IMREAD_ANYDEPTH)


Post a Comment for "Python: How To Read In A 16 Bit .png Grayscale Image"