ComfyUI Node
BD Image To Greyscale
Convert an RGB/RGBA image to greyscale. luminance (default): BT.709 / sRGB — 0.2126·R + 0.7152·G + 0.0722·B. Modern standard, matches what Unity/Unreal use, perceptually accurate for modern displays and AI workflows. luminance_bt601: legacy NTSC — 0.299·R + 0.587·G + 0.114·B. Matches older Photoshop 'Desaturate' and legacy print tools. average: (R+G+B)/3. max_channel: max(R,G,B). red/green/blue: single channel. rgb output: 3-channel IMAGE (R=G=B=luma, alpha=1) — plug into SaveImage, GLSL uniforms, etc. mask output: single-channel MASK tensor.
BD Image To Greyscale
- image
- mask
- image
- mask
◄modeluminance►
◄mask_modeapply_within►
Category🧠BrainDead/Segmentation
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mode | COMBO | luminance | 7 options: luminance, luminance_bt601, average, max_channel, red, green, +1 |
| mask_mode | COMBO | apply_within | How the optional mask input affects the output (only matters when mask is wired): apply_within (default): Only convert pixels inside the mask to greyscale. Pixels outside the mask pass through UNCHANGED from the source (keeps original color). Use when you want to greyscale only a region (e.g. only the skin). cutout: Multiply greyscale by mask. Pixels inside mask show grey, pixels outside are zeroed out (black). Use for cutout-style processing where you want to isolate a region and discard the rest. |
| maskopt | MASK | Optional mask. Behavior controlled by mask_mode above. Soft edges in the mask give a natural feather between modified and untouched regions. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |