I have a numpy array with shape (617, 767), dtype = int32
. Max value in the array is 164, min value in the array is -166. When I use cv2.imshow
to show this array like an image I get this error:
error: (-215:Assertion failed) src_depth != CV_16F && src_depth != CV_32S in function 'convertToShow'
I understand that cv2.imshow
converts negative values to 0 before showing an array like an image. Then why I'm getting this error? Thanks in advance