Is anyone aware of any functions in OpenCV which support 8U
to 16U
conversion? I tried cvConvertImage
, cvConvertScale
but they are all meant to operate only on 8U
image formats.
If you're using the newer C++ API, then check out Mat::convertTo
Mat a(rows, cols, CV_8U);
Mat b;
a.convertTo(b, CV_16U);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.