Operator SelectComponent

Operator Library: Base

SelectComponent 算子支持从输入链路中提取单个彩色分量, 并将其作为灰度像素在输出链路上可用。 使用 Component 参数来选择所需的分量。

I/O Property

Property 值
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

输出 Bit Width 为

参数

组件
键入 static 参数
默认 0
范围 [0, 2]

此参数用于从输入中选择其中一个彩色分量, 例如,如果输入色彩风格为 RGB,则 Component=0 选择红色,1 选择绿色,2 选择蓝色。

使用示例

以下示例展示了 SelectComponent 算子的使用方法: