Fill holes

Include <mln/morpho/fill_hole.hpp>

Image{I}
image_concrete_t<I> fill_hole(I f, Neighborhood nbh, image_point_t<I> marker)
Image{I}
void fill_hole(I f, Neighborhood nbh, image_point_t<I> marker, Image out)

The holes of a binary image correspond to the set of its regional minima which are not connected to the image border (or a given marker). It is defined as the complement of the background connected component of the marker.

\[E \setminus CC(p)\]
Parameters:
  • f – Input image 𝑓 of type bool.

  • nbh – Elementary structuring element.

  • marker – Reference point for background

Returns:

A binary image whose type is deduced from the input image

Exception:

N/A

Notes

Complexity

References

[Soi13]

Soille, P. (2013). Morphological image analysis: principles and applications. Springer Science & Business Media.