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).

After using cv::floodFill I get:

**However, I'd like to know if there is any way to get this instead:**

I can't think of a possible solution, so this is a shot in the dark.. no harm in trying though :)
Best regards!
↧