Fill Holes

Function Description

This step is used to fill holes in the input binary image, which are regions completely surrounded by non-zero pixels.

Use Cases

This step is generally used for image segmentation to obtain complete target region images, or for calculating mask area to avoid interference caused by missing image data in hole regions.

Inputs

  • Binary Image (Required): Input mask image.

Outputs

  • Image: Mask image after filling holes.