cvSetImageROI( img_src, cvRect roi );
2. create a new image with the same size as the ROI
IplImage* img_dst = cvCreateImage( cvSize( roi.width, roi.height ), IPL_DEPTH_8U, 1 );
3. copy the portion from the source image to destination image
cvCopy( img_src, img_dst );
No comments:
Post a Comment