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

Remove Small Soft 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 Soft Mask Regions
  • mask
  • mask
min_image_area_percent0.004
threshold0.10
CategoryInfo-Prompt-Toolkit/Mask

Inputs (3)

NameTypeDefaultDescription
maskMASKSoft or binary input mask. Regions are judged from thresholded foreground while kept pixels preserve their original soft values.
min_image_area_percentFLOAT0.0040–100Thresholded connected regions smaller than this image-area percentage are removed.
thresholdFLOAT0.100–1Pixels above this value define foreground regions before filtering.

Outputs (1)

NameTypeDescription
maskMASK