Operator Library: Filter
運算子 SORT 會根據灰階值,對輸入核心流中的所有元素進行排序。 輸入連結 I 與輸出連結 O 均具有大小為 N 行乘以 M 列的核心場 (I [N, M] 及 O [N, M])。 此核心場會依據像素值進行排序。 灰階值最高的像素位於 O [0, 0],第二高的值位於 O [0, 1], 而最低的灰階值則位於 O [N - 1, M - 1]。 請注意,O [ N / 2, M / 2] 將輸出任意大小核的中位數。
| Link Parameter | Input Link I | Output Link O |
|---|---|---|
| Bit Width | [1, 64] | as I |
| Arithmetic | 無號數 | as I |
| Parallelism | any | as I |
| Kernel Columns | any | 1 |
| Kernel Rows | any | 1 |
| 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 |
以下範例展示了運算子 SORT 的用法:
-
Examples- Geometric Transformation and Defect Detection

上一頁

