Operator SelectFromParallel

Operator Library: Base

SelectFromParallel operator 會從輸入鏈結中擷取單一 Parallelism 元件,並將此數值提供給輸出鏈結。 請使用參數 ParNum 來選擇所需的元件。 輸出鏈結的 Parallelism 始終為 1。系統只會輸出所選取的 Parallelism 元件。

例如,如果使用的輸入 Parallelism 為 4 且選取了 Parallelism 元件 1,則該 operator 會輸出索引為 1、5、9、13、... 的像素。

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 [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 自動2
Max. Img Height any as I

1

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

2

最大輸出影像寬度為:

參數

ParNum
Type static parameter
Default 0
Range [0, InputParallelism - 1]

此參數用於定義將輸入鏈結之平行傳輸像素的哪一個平行元件轉發至輸出端。

使用範例

以下範例顯示了 SelectFromParallel operator 的使用方式: