convert uchar image in short [closed]
Hi, I have an image of type 8U and i need to convert it in 16S. any help would be appreciated.
Hi, I have an image of type 8U and i need to convert it in 16S. any help would be appreciated.
Use convertTo method.
Mat x(10,12,CV_8UC1),y;
x.convertTo(y,CV_16S,128); // y =128*x;
Asked: 2017-05-31 10:41:12 -0600
Seen: 195 times
Last updated: May 31 '17
overflow avoidance on multi-frame accumulation
Convert Mat to MatOfByte in Android
how to sum a 3 channel matrix to a one channel matrix?
Android: Mat converting to CV_8U
cannot convert ‘cv::Mat’ to ‘float’
No way to convert from YUV420sp to RGB565 with OpenCV?
Convert old haarcascade file to new cascade classifier format
convertPointsToHomogeneous doesn't work with double