摘要:
转自http://034080116.blog.163.com/blog/static/33406191200964103748136/在OpenCV中文论坛上很多人问到这样的问题,如何对图像的不规则区域设置ROI,即设置敏感区域,以用来做相关的图像处理。我将根据自己的点点经验,在此进行简单的归纳。对图像的不规则区域设置ROIOpenCV自带的函数cvSetImageROI( IplImage* image, CvRect rect )只能设置矩形的敏感区域,而实际图像处理中遇到的处理对象都是非矩形的不规则形状,此时用cvSetImageROI( IplImage* image, CvRect 阅读全文
摘要:
A few days ago, a reader asked me about selecting circular ROI using OpenCV. I think such a function for selecting non-rectangular subimage would be useful, so I tried to write one.OpenCV doesn't provide a function to make non-rectangle ROI, so I use image mask to do the trick. It works like thi 阅读全文