Operator SelectComponent

The operator SelectComponent enables the extraction of a single color component from the input link and makes this value available at the output link as a gray pixel. Use parameter Component to select the required component.

I/O Properties

Property Value
Operator Type O
Input Link I, data input
Output Link O, data output

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [3, 63] unsigned, [6, 63] signed auto1
Arithmetic {unsigned, signed} as I
Parallelism any as I
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format VAF_COLOR VAF_GRAY
Color Flavor {FL_RGB, FL_HSI, FL_YUV, FL_LAB, FL_XYZ} FL_NONE
Max. Img Width any as I
Max. Img Height any as I

1

The output bit width is

Parameters

Component
Type static parameter
Default 0
Range [0, 2]

This parameter is used to select one of the color component from the input, e.g if the input flavor is RGB Component=0 selects red, 1 select green, and 2 selects blue.

Examples of Use

The use of operator SelectComponent is shown in the following examples: