Mat类表示的图像进行ROI操作有两种方法 (1)使用拷贝构造函数Mat(constMat& m, const Rect& roi ),矩形roi指定了兴趣区 例如:
(2)使用操作符"()",即Mat operator () ( const Rect&roi ) const,矩形roi指定了兴趣区 例如:
|
|
来自: 黑尘子 > 《OpenCV教程》