Ask Your Question

Revision history [back]

Selective hole filling

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

After using cv::floodFill I get:

image description

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

image description

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

Best regards!

Selective hole filling

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

After using cv::floodFill I get:

image description

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

image description

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

Best regards!

Selective hole filling

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

After using cv::floodFill I get:

image description

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

image description

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

Best regards!