JavaScript is disabled on your browser. Please enable JavaScript to enjoy all the features of this site.
Operator Library: Synchronization
運算子 ReSyncToLine 用於將計算結果與當前行的內容重新同步。
因此,行尾處可用的計算結果可套用至同一行。
這使得能在行層級上實作多遍迭代演算法。
ReSyncToLine 會從所有 k 個輸入連結 PI[k] 擷取每行最後一個像素。
同時也會儲存輸入連結 I 上的當前行。
當運算元內處理完輸入端的最後一行像素後,該行的內容便會透過連結 O 輸出。
其餘輸出鏈路 PO0..PO63 則輸出從 PI0..PI63 擷取的值。
PO 的值保持不變。
所有 PO 及 O 輸出埠皆為同步式。
所有輸入鏈路(I 及 PI0..PI63)必須完全同步,亦即它們必須由
同一個 M 型運算子,透過任意 O 型運算子網路來提供源電流。
此運算子會將輸出延遲一行。
Property
Value
Operator Type
M
Input Links
I、影像輸入 PI[k]、資料輸入
輸出連結
O,影像輸出 PO[k],資料輸出
Link Parameter
Input Link I
輸入鏈路 PI[k]
Output Link O
輸出鏈路 PO[k]
Bit Width
[1, 64]
[1, 64]
as I
作為 PI[k]
Arithmetic
{unsigned, signed}
{unsigned, signed}
as I
作為 PI[k]
Parallelism
any
as I
as I
as I
Kernel Columns
any
any
as I
作為 PI[k]
Kernel Rows
any
any
as I
作為 PI[k]
Img Protocol
{VALT_IMAGE2D, VALT_LINE1D}
as I
as I
as I
Color Format
any
any
as I
作為 PI[k]
Color Flavor
any
any
as I
作為 PI[k]
Max. Img Width
any
as I
as I
as I
Max. Img Height
any
as I
as I
as I
無號輸入的 Bit Width 範圍為 [1, 64]。
有號輸入的範圍為 [2, 64]。
無號彩色輸入的範圍為 [3, 63],有號彩色輸入的範圍為 [6, 63]。
Synchronous and Asynchronous Inputs
所有輸入彼此同步,亦即它們必須透過任意的 O 型運算子網路,由相同的 M 型運算子提供來源。
以下範例展示了 ReSyncToLine 運算子的使用方式: