Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Selective hole filling

$
0
0
Hello everyone At the moment I use cv::floodFill to fill holes in binary images. So, if I have the following image (These images are examples produced with a painting tool). ![image description](http://s14.postimg.org/z0nuq0fk1/Bf_HF.png) After using cv::floodFill I get: ![image description](http://s27.postimg.org/y6ftptqpv/Unintended_Result.png) **However, I'd like to know if there is any way to get this instead:** ![image description](http://s23.postimg.org/mamvmc0qz/Intended_Result.png) I can't think of a possible solution, so this is a shot in the dark.. no harm in trying though :) Best regards!

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>