First time here? Check out the FAQ!
answered 2012-10-31 06:44:07 -0600
Mat dst; src(Rect(roiLeft,roiTop,roiWidth,roiHeight)).copyTo(dst);
or
Mat dst = src(Rect(roiLeft,roiTop,roiWidth,roiHeight)).clone();