Lucid.Core.FillCavities

Fills inner enclosed cavities of a segmented binary image. Optional morphological closing can be used to fill openings to the background prior to the operation.