Does anyone know of any features in OpenCV that support conversion 8Uto 16U? I tried cvConvertImage, cvConvertScalebut they are all designed to work only with image formats 8U.
8U
16U
cvConvertImage
cvConvertScale
If you are using the new C ++ API, check Mat::convertTo
Mat::convertTo
Mat a(rows, cols, CV_8U); Mat b; a.convertTo(b, CV_16U);