Nodes/MdColorMod/Color Components Extract (MD)
ComfyUI Node

Color Components Extract (MD)

Extracts a specific color component (e.g., red, hue, lightness) as a mask, with optional inversion and linear conversion.

By MdONeilsl·Created 2 months ago·Updated about a month ago· 0
Color Components Extract (MD)
  • image
  • mask
  • mask
ComponentRGB red
Invertfalse
Linearfalse
Categorymd/image/color

Inputs (5)

NameTypeDefaultDescription
imageIMAGEInput image tensor.
ComponentCOMBORGB redWhich component to extract.
InvertBOOLEANfalseInvert the extracted mask.
LinearBOOLEANfalseConvert to linear before extraction (for sRGB inputs).
maskoptMASKOptional mask to restrict the extraction area.

Outputs (1)

NameTypeDescription
maskMASKThe extracted mask.