/ Published in: C++
URL: http://nashruddin.com/OpenCV_Region_of_Interest_(ROI)
Expand |
Embed | Plain Text
void getSubImg(IplImage* img, IplImage* subImg, CvRect roiRect) { cvSetImageROI(img, roiRect); subImg = cvCreateImage(cvGetSize(img), img->depth, img->nChannels); cvCopy(img, subImg, NULL); cvResetImageROI(img); }
You need to login to post a comment.
