How to exclude or mask small regions of video from feature detection?

2 次查看(过去 30 天)
I want to try doing SLAM on some video from a helicopter. Unfortunately the video has a data overlay that interferes with the detection of features. Unfortunately, some of the overlay is in the center of the image, so selecting a rectangular ROI would be limited to a very small part of the image.
How can I tell the feature detector to ignore some portions of the image? The overlay pixel locations are very consistent, so I want to use a mask.

采纳的回答

Image Analyst
Image Analyst 2022-11-10
Perhaps you can use the Color Thresholder to identify the blue-green pixels. Then use regionfill to fill them in with the surrounding "good" parts of the image.
See attached m-file.
  6 个评论
Nelson
Nelson 2022-11-15
编辑:Nelson 2022-11-15
The cyan text certainly causes a lot of undesired detections, but the detector I tested seems to ignore pure-black (zeros). Maybe that's the convention for the detector, that black pixels are ignored. Thanks!
Image Analyst
Image Analyst 2022-11-15
Glad I could help and that it's working. Thanks getting back to me, and for Accepting the Answer. 🙂

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing and Computer Vision 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by