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.
Color Components Extract (MD)
- image
- mask
- mask
◄ComponentRGB red►
◄Invertfalse►
◄Linearfalse►
Categorymd/image/color
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image tensor. | |
| Component | COMBO | RGB red | Which component to extract. |
| Invert | BOOLEAN | false | Invert the extracted mask. |
| Linear | BOOLEAN | false | Convert to linear before extraction (for sRGB inputs). |
| maskopt | MASK | Optional mask to restrict the extraction area. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| mask | MASK | The extracted mask. |