運算子 SelectFromParallel

Operator Library: Base

運算子 SelectFromParallel 會從輸入鏈結中擷取單一並行性元件,並將此值 提供至輸出鏈結。 請使用參數ParNum來選取所需的元件。 輸出鏈結的並行性始終為一。系統僅會輸出已選取的並行性元件。

例如,若使用輸入平行度為 4,並選取平行度元件 1,則該運算子將輸出 索引為 1、5、9、13、... 的像素

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 [1, 64]1 as I
Arithmetic {unsigned, signed} as I
Parallelism any 1
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format any as I
Color Flavor any as I
Max. Img Width any auto2
Max. Img Height any as I

1

針對無號數值,輸入 Bit Width 的範圍為 [1, 64]。 針對有號數值輸入,範圍為 [2, 64]。 針對無號彩色輸入為 [3, 63],針對有號彩色輸入則為 [6, 63]。

2

輸出影像的最大寬度為:

Parameters

ParNum
Type 靜態參數
Default 0
Range [0, 輸入並行度 - 1]

此參數用以定義輸入鏈路中並行傳輸的像素的哪個並行組件將被轉發至 輸出端。

Examples of Use

以下範例展示了 SelectFromParallel 運算子的用法: