Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 OpenCV中更改图像的基本类型(不是通道数) ?例如转换为,反之亦然?CV_8UC1CV_32SC1
CV_8UC1
CV_32SC1
注意:目标是在计算过程中克服类型溢出,而不是显示扩展图像。
您必须为此使用convertTo方法:
将数组转换为另一种具有可选缩放比例的数据类型。