ComfyUI Node
Remove Small Mask Regions
A ComfyUI node in Info-Prompt-Toolkit/Mask with 3 inputs and 1 output.
Remove Small Mask Regions
- mask
- mask
◄min_image_area_percent0.004►
◄threshold0.50►
CategoryInfo-Prompt-Toolkit/Mask
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | Soft or binary input mask. The node thresholds it before removing islands. | |
| min_image_area_percent | FLOAT | 0.0040–100 | Connected foreground islands smaller than this image-area percentage are removed. |
| threshold | FLOAT | 0.500–1 | Pixels above this value are treated as foreground before filtering. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |