Nodes/ComfyUI-BrainDead/BD Unpack Channels
ComfyUI Node

BD Unpack Channels

Inverse of BD_PackChannels. Splits one RGBA image into 4 individual channels. Each channel is output as both IMAGE (greyscale, 3-channel) and MASK (single-channel). Also produces a debug_preview showing all 4 channels in a 2x2 grid, each tinted in its own color (R=red, G=green, B=blue, A=white) — matches BD_PackChannels debug_preview layout.

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD Unpack Channels
  • image
  • red_image
  • green_image
  • blue_image
  • alpha_image
  • red_mask
  • green_mask
  • blue_mask
  • alpha_mask
  • debug_preview
alpha_default1.00
Category🧠BrainDead/Segmentation

Inputs (2)

NameTypeDefaultDescription
imageIMAGESource image — RGB or RGBA. If RGB, alpha output is the value from alpha_default.
alpha_defaultoptFLOAT1.000–1Value used for the alpha output when the input image is RGB (only 3 channels). Default 1.0 = fully opaque.

Outputs (9)

NameTypeDescription
red_imageIMAGER channel as greyscale 3-channel image (R replicated to RGB).
green_imageIMAGEG channel as greyscale 3-channel image.
blue_imageIMAGEB channel as greyscale 3-channel image.
alpha_imageIMAGEA channel as greyscale 3-channel image.
red_maskMASKR channel as single-channel MASK.
green_maskMASKG channel as single-channel MASK.
blue_maskMASKB channel as single-channel MASK.
alpha_maskMASKA channel as single-channel MASK.
debug_previewIMAGE2x2 grid: R top-left tinted red, G top-right green, B bottom-left blue, A bottom-right white.