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.
SourceSelect | |
---|---|
Type | static parameter |
Default | index |
Range | [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:
-
Example - Line Shear example with linear interpolation.