Ask Your Question

Revision history [back]

Simply done by:

Mat image = imread("");
Rect region_of_interest = Rect(x, y, w, h);
Mat image_roi = image(region_of_interest);

There you go :)