Open
Description
Attached is an image that is acting very strange...
I=cv2.imread("path/to/hbl.png")[:,:,0]
I1 = np.array(mylib.Mat.from_array(I))
I2 = np.array(mylib.Mat.from_array(I.astype(np.uint8)))
I1 is all messed up but I2 works as expected. I's dtype
is already np.uint8
so I don't know what the magic is with the asytpe()
converting it to the same datatype.
Any idea what I might be doing incorrectly?