Nodes/ComfyUI-multiple-inputs/Multiple Masks to RGB Image
ComfyUI Node

Multiple Masks to RGB Image

A ComfyUI node in MyTemplate with 7 inputs and 2 outputs.

By judian17·Created 9 months ago·Updated 9 months ago· 7
Multiple Masks to RGB Image
  • mask_1
  • mask_2
  • mask_3
  • image
  • color_info
inputcount3
binarizefalse
binarize_threshold0.20
remove_noisefalse
CategoryMyTemplate

Inputs (7)

NameTypeDefaultDescription
inputcountINT32–100Number of mask inputs. Click 'Update inputs' to refresh ports.
mask_1MASKThe base mask. All other masks will be resized to match this mask's dimensions.
binarizeBOOLEANfalseIf enabled, converts soft mask edges (gray) to hard edges (black/white).
binarize_thresholdFLOAT0.200.01–0.99The pixel value threshold. Pixels brighter than this become 1, darker become 0.
remove_noiseBOOLEANfalseIf enabled, removes small isolated pixel islands (dust/noise) from the mask.
mask_2optMASK
mask_3optMASK

Outputs (2)

NameTypeDescription
imageIMAGE
color_infoSTRING