Nodes/comfyUI-TiledWan/TiledWan Image To Mask
ComfyUI Node

TiledWan Image To Mask

Extracts a specific color channel from an image to create a mask. Useful for converting colored regions, alpha channels, or channel-specific data into masks for use with inpainting, compositing, or other masking operations. The output mask values represent the intensity of the selected channel, with proper normalization and clamping.

By Baverne·Created about a year ago·Updated 6 months ago· 8
TiledWan Image To Mask
  • image
  • mask
channel
clamp_outputtrue
normalize_outputtrue
CategoryTiledWan

Inputs (4)

NameTypeDefaultDescription
imageIMAGEInput image to convert to mask. Can be any standard image format.
channelCOMBOWhich color channel to extract as the mask. Alpha channel only available if image has transparency.
clamp_outputBOOLEANtrueClamp output values to 0-1 range. Recommended to keep enabled for proper mask values.
normalize_outputBOOLEANtrueNormalize the output to use full 0-1 range.

Outputs (1)

NameTypeDescription
maskMASKGrayscale mask derived from the selected image channel. White areas indicate high channel values, black areas indicate low values.