Operator Library: Logic
若輸入連結 I 的值小於或等於參數 Number 的值,則 IS_LessEqual 算子會將輸出設為邏輯「1」,否則輸出為「0」。
若要比較兩個輸入連結的值,請改用算子 CMP_AleB。
| Link Parameter | Input Link I | Output Link O |
|---|---|---|
| Bit Width | [1, 63] unsigned, [2, 64] signed | 1 |
| Arithmetic | {unsigned, signed} | unsigned |
| 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_GRAY | as I |
| Color Flavor | FL_NONE | as I |
| Max. Img Width | any | as I |
| Max. Img Height | any | as I |
| Number | |
|---|---|
| Type | static/dynamic read/write parameter |
| Default | 0 |
| Range | 與輸入連線 I 的範圍相同 |
|
要與輸入連線數值進行比較的數值。 |
|
| ImplementationType | ||||
|---|---|---|---|---|
| Type | 靜態寫入參數 | |||
| Default | AUTO | |||
| Range | (AUTO, EmbeddedALU, LUT) | |||
|
引數 ImplementationType 允許您影響 operator 的實作方式,亦即定義用於實作該 operator 的邏輯元素。 您可以選擇以下其中一個值: AUTO: 當執行個體化 operator 時,系統會根據 operator 的參數化,自動為特定的 FPGA 架構選擇最佳的實作策略。 EmbeddedALU: operator 使用 FPGA 的內嵌 ALU 元素。 LUT: operator 使用 FPGA 的 LUT 元素。
|
||||
以下範例顯示了 IS_LessEqual 算子的使用方式:
-
'Combine Image Data From Two Camera Sources - Building an Overlay Blend'
Example - From equation to implementation. Explanation on how to implement the overlay blend.
-
範例 - 顯示在線掃描應用中使用 operator Blob_Analysis_1D。
-
範例 - 顯示 operator Blob_Analysis_2D 的用法。 此 applet 會將輸入資料進行二值化並判定 Blob 分析結果。 結果以及原始影像會透過兩個 DMA 通道輸出。
-
範例 - 將 blob 分析運算子套用至輸入相機影像。 此 applet 顯示了 applet 中 blob 資料的使用方式。 在此情況下,會定位出具有最大面積的物件,並使用其座標從原始影像中裁切出該物件。
-
範例 - 在 HSL 影像上進行 Color Classification 非常簡單。 此 applet 會將 RGB 影像轉換為 HSL 影像並執行 Color Classification。 色相會透過 lookup table 進行濾除。 此外,飽和度和亮度會使用自訂 threshold 值進行閾值處理。
-
範例 - 一種 High Speed 且強固的雷射線偵測演算法。 此演算法可決定重心座標以取得亞像素解析度結果。

![[備註]](../common/images/admon/note.png)
上一頁

