Nodes/ComfyUI-Info-Prompt-Toolkit/Remove Small Mask Regions
ComfyUI Node

Remove Small Mask Regions

A ComfyUI node in Info-Prompt-Toolkit/Mask with 3 inputs and 1 output.

By kinorax·Created 4 months ago·Updated 2 months ago· 1
Remove Small Mask Regions
  • mask
  • mask
min_image_area_percent0.004
threshold0.50
CategoryInfo-Prompt-Toolkit/Mask

Inputs (3)

NameTypeDefaultDescription
maskMASKSoft or binary input mask. The node thresholds it before removing islands.
min_image_area_percentFLOAT0.0040–100Connected foreground islands smaller than this image-area percentage are removed.
thresholdFLOAT0.500–1Pixels above this value are treated as foreground before filtering.

Outputs (1)

NameTypeDescription
maskMASK