Operator KernelRemap

Operator Library: Base

The operator KernelRemap allows the remapping of kernel components between the input and the output. The output of the operator has the same kernel dimension as the input. Using the static parameter SourceSelect, it is possible to remap the kernel components. This can be useful to mirror a kernel or it can be useful for a rotation of the kernel components.

The remapping is done by allocating a new input kernel index to each output. Hence, for each output kernel component an input kernel component is selected using the parameter SourceSelect. It is also possible to allocate the same input kernel component to multiple output kernel components. If an input kernel component is not mapped to any output, the data is discarded.

I/O Property

Property 値
オペレータータイプ O
Input Link I, data input
Output Link O, data output

サポートされているリンクフォーマット

Link Parameter Input Link I Output Link O
Bit Width [1, 64]1 as I
Arithmetic {unsigned, signed} as I
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 any as I
Color Flavor any as I
Max. Img Width any as I
Max. Img Height any as I

1

入力 Bit Width の範囲は [1, 64] です。 符号付き入力の場合の範囲は [2, 64] です。 符号なしカラー入力の場合の範囲は [3, 63] であり、符号付きカラーの場合の範囲は [6, 63] です。

パラメーター

SourceSelect
タイプ static パラメータ
Default index
範囲 [0, KernelRows * KernelCols - 1]

This parameter defines the remapping of the kernel. It represents the output kernel components. Hence, for every output kernel component an input kernel component is selected.

The kernel components are indexed from top-left to bottom-right.

使用例

The use of operator KernelRemap is shown in the following examples: