ijpb / MorphoLibJ

Collection of mathematical morphology methods and plugins for ImageJ
http://imagej.net/MorphoLibJ
GNU Lesser General Public License v3.0
98 stars 49 forks source link

"Fill Label Holes" plugin results in full-white image when applied to binary image #80

Open dlegland opened 6 months ago

dlegland commented 6 months ago

When the "Fill Label Holes" plugin is applied to a binary image (or to an image with only one label except the background), the result is an image totally filled with the label value.

Possible solution: after CC-labeling of BG regions is computed, discard the BG regions that touch the border of the image.

Should also return the result in a new image.