开发者_如何学运维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);
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论