Nodes/ComfyUI-MultiMaskOps/Mask Expand Without Overlap
ComfyUI Node

Mask Expand Without Overlap

A ComfyUI node in MultiMaskOps with 8 inputs and 1 output.

By INuBq8·Created about a month ago·Updated about a month ago· 0
Mask Expand Without Overlap
  • masks
  • masks
expand_pixels10
tapered_cornerstrue
feather_amount0
feather_mode
overlap_policy
subtract_hardtrue
threshold0.50
CategoryMultiMaskOps

Inputs (8)

NameTypeDefaultDescription
masksMASKA list of masks to expand/feather while preventing overlap.
expand_pixelsINT100–4096Pixels to grow each mask (native GrowMask method). 0 = no expansion.
tapered_cornersBOOLEANtrueRounds the corners of the expansion (matches native GrowMask). True = rounded growth, False = square growth.
feather_amountINT00–4096Gaussian blur radius for soft edges (used as sigma, matches KJNodes GrowMaskWithBlur). 0 = no feather.
feather_modeCOMBOHow feathering interacts with neighbors. cut_feather = feather then subtract neighbors (hard seam at neighbor edge). preserve_feather = subtract, feather, subtract again (soft seam that never leaks into neighbors).
overlap_policyCOMBOHow expansions interact. allow = may overlap freely in empty space (only original regions protected). retreat = contested empty pixels cleared in both masks (clean seam). priority = earlier masks in the list win contested pixels (gap-free).
subtract_hardBOOLEANtrueFlatten the protected/subtracted region so masks can never leave any nonzero value inside another mask's area. Recommended on.
thresholdFLOAT0.500–1Binarization cutoff used when building the hard protection regions.

Outputs (1)

NameTypeDescription
masksMASK