CV_16S的数据显示时
convertTo(_,CV_8U)时大于255的置255,小于0的置零。所以要convertTo(_,CV_8U,1.0/16)
imshow时
- If the image is 8-bit unsigned, it is displayed as is.
- If the image is 16-bit unsigned or 32-bit integer, the pixels are divided by 256. That is, the
value range [0,255\*256] is mapped to [0,255].//CV_16U的数据除以256
- If the image is 32-bit or 64-bit floating-point, the pixel values are multiplied by 255. That is, the
value range [0,1] is mapped to [0,255].//乘255