運算子 RowMax

Operator Library: Accumulator

此運算子會回傳每行影像中找到的最大像素值。 每個輸入像素值都會被替換為該行迄今為止找到的最大像素值。 若當前像素為新的最大值,則輸出 LinkIsMaxO的值為 1;否則為 0。

[注意] Resource Consumption

該運算子的 FPGA 資源消耗會隨著 並行度的大幅增加而顯著上升。我們建議在此運算子中採用較低的並行度。

In many use cases of this operator, the Parallelism can be reduced selecting the max parallel component prior to this operator. Use SplitParallel, MergeKernel and MAX for this operation.

每新增一行,最大值偵測便會重新開始。 此外,當ClrI連結設定為 1 時,可手動清除當前行的最大值。 若無需手動清除,則必須確保ClrI 始終維持為 0。

通常,此運算子會與運算子 RemovePixel 配合使用,以僅採用最後一欄 所包含的完整幀結果。 請注意,隨著並行度增加,此運算子將需要更多的資源。 若僅需各列的最大值且無需中間結果,可先計算 並行字元的最大值。

以下範例說明了輸入值與輸出值之間的關係。

影像限制

  • 影像大小

    在非空的圖像中,允許出現長度不一的行以及空行。

  • 空白影像

    允許使用空影像,即不含任何像素的影像。運算子將輸出一個空影像。

I/O Properties

Property Value
Operator Type O
Input Links I,影像輸入
ClrI,清除輸入
輸出連結 O, 資料輸出
IsMaxO, 二進位輸出,用以指示新的最大值

Supported Link Format

Link Parameter Input Link I 輸入連線 ClrI Output Link O Output Link IsMaxO
Bit Width [1, 64] 無號數,[2, 64] 有號數 1 as I 1
Arithmetic {unsigned, signed} 無號數 as I 無號數
Parallelism any as I as I as I
Kernel Columns 1 as I as I as I
Kernel Rows 1 as I as I as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I as I as I
Color Format VAF_GRAY as I as I as I
Color Flavor FL_NONE as I as I as I
Max. Img Width any as I as I as I
Max. Img Height any as I as I as I

Parameters

無

Examples of Use

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