遮罩/归零区域超出指定的ROI [英] Mask / Zero out area outside specified ROI
本文介绍了遮罩/归零区域超出指定的ROI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用在模板匹配上使用OpenCV的项目,并且我想限制图像上的搜索区域.从相机连续捕获图像.
I'm working on a project using OpenCV on template matching, and I want to limit the search region on an image. Image is captured continuously from a camera.
是否有任何方法可以将定义在ROI之外的图像归零/遮罩,以便模板匹配过程可以针对剩余区域进行特定设置,从而更快,更准确?
Is there any way to Zero / mask out image outside ROI defined, so that template matching process can be specific on remaining region, faster and accurate?
推荐答案
查看全文