Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
Mat dst;
src(Rect(roiLeft,roiTop,roiWidth,roiHeight)).copyTo(dst);

or

Mat dst = src(Rect(roiLeft,roiTop,roiWidth,roiHeight)).clone();