Fill Hole

Node Icon

Fills holes and cavities by applying a voting operation on each pixel.

Inputs

Input

Input mask(s).

Type: Mask, List, Required, Single

Outputs

Output

Output mask(s).

Type: Mask, List

Settings

Majority Threshold Integer

The number of pixels over 50% that will decide whether an FALSE pixel will become TRUE or not. For example, if the neighborhood of a pixel has 124 pixels (excluding itself), the 50% will be 62, and if you set up a Majority threshold of 5, that means that the filter will require 67 or more neighbor pixels to be TRUE in order to switch the current FALSE pixel to TRUE. The default value is 1.

Kernel Radius [px] Integers

The radius of the neighborhood used to compute the median.

See also

References

Keywords: