IplImage* cvGetSubImage(IplImage *image, CvRect roi)
{
    IplImage *result;
    // 设置 ROI 
    cvSetImageROI(image,roi);
    // 创建子图像
    result = cvCreateImage( cvSize(roi.width, roi.height), image->depth, image->nChannels );
    cvCopy(image,result);
    cvResetImageROI(image);
    return result;
}

相关文章:

  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-10-06
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-01-09
  • 2022-12-23
  • 2021-12-04
  • 2021-11-09
相关资源
相似解决方案