運算子 SelectComponent 能夠從輸入 link 中提取單一色彩分量,
並將此值作為灰階像素在輸出 link 上提供。
使用參數 Component 來選擇所需的色彩分量。
I/O Properties
Property
Value
Operator Type
O
Input Link
I, data input
Output Link
O, data output
支援的 Link 格式
Link Parameter
Input Link I
Output Link O
Bit Width
[3, 63] 無符號,[6, 63] 有符號
自動
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
輸出的 Bit Width 為
參數
元件
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.