Color to mask

table 0-row-2 0-border-0px 1-border-0px 1-width-33.33% 2-border-0px 2-width-100.00% html-authored no-header

Color to mask - Icon {width="200px"}

In: Filters > Adjustments

Description

Extracts a greyscale mask from selected colors in a color image.

table 0-row-4 0-border-0px 1-border-0px 2-border-0px 3-border-0px 4-border-0px html-authored no-header

Inputs

Outputs

Parameters

Examples

Inputs

table 0-row-2 1-row-2 2-row-2
Input Color The input color image that a mask should be extracted from based on its colors.
Color Input Color   Available when ‘Use color input’ is set to ‘True’ The input color image used to define the reference color per pixel.

Outputs

table 0-row-2 1-row-2
Output Grayscale The generated mask as a grayscale bitmap.

Parameters

table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2 6-row-2
Use color input Boolean Use an input image instead of a uniform color, in order to define a reference color per pixel. The input image is provided by the  Color input  input.
Color Float3   Available when ‘Use color input’ is set to ‘False’ The reference uniform color around which the color selection should be performed.
Threshold Float The distance to the reference color below which colors are selected.
Selection fade Float Fade the color selection based on the distance to the reference color.
Distance color space Integer

The Equalize process involves comparing colors to determine the distance between them. Certain color spaces and distance algorithms are better suited for specific use cases.   This drop-down list lets you select the color space used to compare the colors:

  • RGB (Data): Color is split into Red, Green, Blue channels and distributed straight along those axis, disregarding human perception. This is appropriate for images holding raw data.
  • Linear sRGB (Color): Color is split into Red, Green, Blue channels and distributed in a linear relationship to the pixel light intensity. This is appropriate for image which may be visualised on displays.
  • Luminance (Color): Color is split into Hue, Chroma, Luminance values where only the Luminance value is used in the comparaison. This is appropriate for image which may be visualised on displays.
  • Lab (Color): A standardized perceptual color space, which distributes colors in such a way that colors that ‘feel’ close are actually close in the cube. This is appropriate for image which may be visualised on displays.
  • Angle (Normal): Color is split into the X, Y, Z axes of a vector and compared through a dot product. This is appropriate for images holding Tangent Space Normals.
Distance weights Float3 The Lab color distance algorithm (DeltaE2000) introduces certain weight factors for each lightness, chroma, and hue value.   Lower values will decrease the influence of the factors in the color difference algorithm.   Since the eye will generally accept larger differences in lightness (L) than in chroma © or hue (H), a default ratio for (LH) is (0.5:1:1). A 0.5:1:1 ratio will allow twice as much difference in lightness as in chroma or hue.

Examples

table 0-row-2 0-border-0px 1-border-0px 2-border-0px html-authored no-header
recommendation-more-help
dd48abc6-e399-43d2-9777-578ec70c5a23