Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
Mat cropedImage = fullImage(Rect(roiX,roiY,roiWidth,roiHeight));

Also note that this operation doesn't really perform cropping or coping memory. croppedImage uses same memory buffer as fullImage, so any changes of one of them may affect another.