Operator RemoveImage

Operator Library: Synchronization

RemoveImage 運算子用於完全移除影像。 是否移除影像取決於二進位輸入連結 Rem。 若 Rem 的第一個像素值為 1,則影像會被移除。 若像素值為 0,則影像會被轉發至輸出。

兩個輸入必須是同步的,亦即它們必須透過由 O-type 運算子組成的任意網路,由同一個 M-type 運算子提供來源。

此外,空影像或第一行為空的影像將永遠被移除!

I/O Properties

Property Value
Operator Type P
輸入連結 I,資料輸入
Rem,控制輸入
Output Link O, data output

支援的 Link 格式

Link Parameter Input Link I 輸入連結 Rem Output Link O
Bit Width [1, 64]1 1 as I
Arithmetic {unsigned, signed} unsigned as I
Parallelism any as I as I
Kernel Columns any 1 as I
Kernel Rows any 1 as I
Img Protocol VALT_IMAGE2D VALT_IMAGE2D as I
Color Format any VAF_GRAY as I
Color Flavor any FL_NONE as I
Max. Img Width any any as I
Max. Img Height any any as I

1

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

同步與非同步輸入

  • 所有輸入彼此同步,亦即它們必須透過任意的 O 型 operator 網路,由同一個 M 型 operator 提供來源。

參數

無

使用範例

以下範例展示了 RemoveImage 運算子的使用方式: