ComfyUI Node

Extract Red

Extracts red elements from images by converting non-red pixels to white, isolating red markings and annotations.

By mikemojen·Created 8 months ago·Updated 3 months ago· 0
Extract Red
  • image
  • image
red_threshold0.40
red_dominance0.20
max_other_channels1.00
preserve_original_redtrue
invert_outputfalse
Categoryimage/processing

Inputs (6)

NameTypeDefaultDescription
imageIMAGE
red_thresholdFLOAT0.400–1Minimum red channel value required (0.0 = any red, 1.0 = pure red only)
red_dominanceFLOAT0.200–1How much the red channel must exceed green and blue (0.0 = no dominance required, higher = stricter)
max_other_channelsoptFLOAT1.000–1Maximum allowed value for green and blue channels (lower = purer reds only)
preserve_original_redoptBOOLEANtrueIf enabled, keeps original red pixel colors; if disabled, converts red pixels to pure red (1,0,0)
invert_outputoptBOOLEANfalseIf enabled, outputs white background with inverted colors

Outputs (1)

NameTypeDescription
imageIMAGE