Operator SelectComponent

Operator Library: Base

「SelectComponent」運算子可從輸入連結中萃取單一色彩成分,並 將此值以灰色像素的形式提供至輸出連結。 請使用「Component」參數來選擇所需的色彩成分。

I/O Properties

Property Value
Operator Type O
Input Link I,資料輸入
Output Link O,資料輸出

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [3, 63] 無符號,[6, 63] 有符號 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

輸出位元寬度為

Parameters

元件
Type 靜態參數
Default 0
Range [0, 2]

此參數用於從輸入中選取其中一個色彩成分, 例如,若輸入格式為 RGB,則 Component=0 選取紅色、1 選取綠色,而 2 選取藍色。

Examples of Use

以下範例展示了 SelectComponent 運算子的使用方式: