Ask Your Question

Revision history [back]

Thanks, it worked for me

Mat m1=image;
Rect roi(r.x,r.y, r.width,r.height);
Mat image_roi(m1,roi);
imshow("image",image_roi);