Close Holes Example


Close holes is a morphological operator that fills the holes in every connected component of an image. Its main characteristc is to close holes without changing the contours of the image.

In the example we show all the steps used to build the operator:

First the operator does a negation of the original image (figure 1 and 2):

fig. 1 - Original Image

fig. 2 - Negation

Then using an image that is only a frame of the whole image it does an opening by reconstruction of the negated image from the frame, in order to build the negated image without the holes (figure 3).

fig. 3 - Reconstruction

Finally, it is necessary to negate the image again to restore the original state (figure 4).

fig. 4 - Final Result