Operator Library: Base
The operator MergeKernel merges an arbitrary number N of input links I[0] .. I[63] (max.) into a single output link O.
The operator allows kernels at its inputs. One kernel dimension (row or column) needs to have the same size (number of pixels) at all inputs. For the other dimension (rows or columns) an individual size can be defined for each input. Thus, either the number of rows or the number of columns has to be the same for all kernels at the inputs.
For detailed information, see parameter description.
Property | Value |
---|---|
Operator Type | O |
Input Links | I[0], data input I[n], n > 0, data input |
Output Link | O, data output |
Alignment | |
---|---|
Type | static write parameter |
Default | horizontal |
Range | [horizontal, vertical] |
Parameter Alignment defines the ordering of the output vector. The vector is a concation of all inputs in either horizontal or vertical direction. Via parameter Alignment, you define if the number of rows or the number of columns has the same value for all kernels at the inputs. Horizontal: If you select "horizontal" (default) the number of rows needs to be the same for the incoming kernels at all inputs. The number of columns you can define individually for each incoming kernel. In the output, the number of rows is the same as in the inputs. The number of columns will be the sum of the columns of all inputs. Vertical: If you select "vertical" the number of rows can be defined individually for each incoming kernel. The number of columns needs to be the same for the incoming kernels at all inputs. In the output, the number of columns is the same as in the inputs. The number of rows will be the sum of the rows of all inputs. |
The use of operator MergeKernel is shown in the following examples:
-
Examples - The Kirsch filter is a good edge detection filter for non directional edges.
-
'Histogram of Oriented Gradients (HOG)'
Examples- Histogram of oriented Gradients