Also known as: Select Colour
Creates a selection mask from a color image, picking out pixels by their color, hue, saturation, or luminance. White marks a close match to the target.
When to Use
Use the resulting mask for compositing, masking effects, or isolating color regions:
- Color families: Select hue is useful for isolating color families regardless of brightness (e.g., all reds, all greens).
- Vibrant vs muted areas: Select saturation can identify vibrant vs. muted color regions.
- Shadows and highlights: Select luminance selects by brightness, useful for shadows and highlights.
- A specific color: Select color mode uses RGB distance, selecting colors similar to the chosen value.
- Chroma keying: For green screen removal, use Select hue with a target around 0.33 and adjust the falloff.
How to Use
Connect a color bitmap to the input. By default the device selects by hue, with a Target of 0.0 (red) and a Falloff of 0.1.
- Connect a color map to the input
- Choose your Selection Type based on what property you want to target
- For color selection, choose your target Color
- For hue/saturation/luminance selection, set the Target value
- Adjust Falloff to control how strictly the color must match
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Primary Input | RGB Bitmap | Required | The color image to analyze |
| Mask Input | Heightfield | Optional | Limits the selection: the output fades to black where the mask is black |
Outputs
| Port | Type | Description |
|---|---|---|
| Primary Output | Heightfield | Mask showing color-based selection |
Parameters
Selection Type
Determines which color property to use for selection.
- Default: Select hue
- Options:
- Select color: Match by RGB color value
- Select hue: Match by color hue (position on color wheel)
- Select saturation: Match by color intensity/purity
- Select luminance: Match by brightness (the value of the brightest color channel)
Color
The target color to select. Only visible when Selection Type is set to “Select color”.
- Default: Mid-green (0.33, 0.5, 0.33 RGB)
- Note: Click to open color picker
Target
The target value for hue, saturation, or luminance selection. Only visible when Selection Type is not “Select color”.
- Default: 0.0
- Range: 0.0 to 1.0
- Note:
- For hue: 0.0 = red, 0.33 = green, 0.67 = blue, cycling back to red at 1.0
- For saturation: 0.0 = grayscale, 1.0 = fully saturated
- For luminance: 0.0 = black, 1.0 = white or any fully bright color (a pure red counts as fully bright)
Falloff
Controls the selection fuzziness. Only an exact match is fully white; the mask fades evenly to black as colors move away from the target, reaching black at the Falloff distance. Smaller values create sharp color selections, larger values select a broader range around the target.
- Default: 0.1
- Range: 0.0125 to 1.0
Tips and Tricks
- Hue selection wraps around the color wheel in one direction only: a Target near 1.0 also matches hues just above 0.0, but a Target of 0.0 does not reach hues just below 1.0. To catch reds on both sides of the wheel, use a Target of 1.0 rather than 0.0
- Grays, black and white have no hue and are treated as red, so Select hue with a red target also picks them up. Multiply the result by a Select saturation mask (high Target, wide Falloff) to exclude them
- Combine multiple Select Color devices to build complex color-based masks