Operator SelectSubKernel

Operator Library: Base

The operator SelectSubKernel extracts a rectangular subset of the kernel matrix at the input link. Similar to the ROI an offset for the first element of the new kernel can be defined using parameters FirstROW and FirstCOL. The size (width/height) of the new kernel can be chosen at the output link by setting the kernel size of the link.

Often, this operator is used to extract the central element of a kernel which mostly is the original pixel value.

I/O Properties

Property Value
Operator Type O
Input Link I, data input
Output Link O, data output

Supported Link Format

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 any2
Kernel Rows any any3
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

The range of the input bit width is [1, 64]. For signed inputs, the range is [2, 64]. For unsigned color inputs, the range is [3, 63] and for signed color, the range is [6, 63].

2 3

Range is defined as follows:

Parameters

FirstROW
Type static parameter
Default 0
Range [0, InputKernelRows - OutputKernelRows]

This parameter defines the first row for the new kernel.

FirstCOL
Type static parameter
Default 0
Range [0, InputKernelColumns - OutputKernelColumns]

This parameter defines the first column for the new kernel.

Examples of Use

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