First time here? Check out the FAQ!
answered 2014-10-05 18:01:05 -0600
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);