摘要:
IplImage* cvGetSubImage(IplImage *image, CvRect roi){IplImage *result;// 设置 ROIcvSetImageROI(image,roi);// 创建子图像result = cvCreateImage( cvSize(roi.width, roi.height), image->depth, image->nChannels );cvCopy(image,result);cvResetImageROI(image);return result;} 阅读全文