1 | initial version |
if OrgMat is the orginal image matrix you can do the follwoing
Rect ROIRect (...) // fill your regions coordinates here Mat ROIMat = OrgMat(ROIRect); imwrite("c:\\roiImage.bmp",ROIMat);
do the previous steps for all regions you got