Operator Library: Logic
The operator CMP_AgeB (compare A greater or equal B) sets the output to a logical "1" if the value at the input link A is greater or equal to the value at the input link B, otherwise the output is "0".
To compare the value of input A with a dynamic parameter value use operator IS_GreaterEqual instead.
Property | Value |
---|---|
Operator Type | O |
Input Links | A, data input B, data input |
Output Link | O, data output |
Link Parameter | Input Link A | Input Link B | Output Link O |
---|---|---|---|
Bit Width | [1, 64] unsigned, [2, 64] signed | [1, 64] unsigned, [2, 64] signed | 1 |
Arithmetic | {unsigned, signed} | as A | unsigned |
Parallelism | any | as A | as I |
Kernel Columns | any | as A | as I |
Kernel Rows | any | as A | as I |
Img Protocol | {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} | as A | as I |
Color Format | VAF_GRAY | as A | as I |
Color Flavor | FL_NONE | as A | as I |
Max. Img Width | any | as A | as I |
Max. Img Height | any | as A | as I |
ImplementationType | ||||
---|---|---|---|---|
Type | static write parameter | |||
Default | AUTO | |||
Range | (AUTO, EmbeddedALU, LUT) | |||
Parameter ImplementationType allows you to influence the implementation of the operator, i.e., to define which logic elements are used for implementing the operator. You can select one of the following values: AUTO: When the operator is instantiated, the optimal implementation strategy for the given FPGA architecture is selected automatically, based on the parametrization of the operator. EmbeddedALU: The operator uses embedded ALU elements of the FPGA. LUT: The operator uses the LUT elements of the FPGA.
|
The use of operator CMP_AgeB is shown in the following examples:
-
A binarization example for local adaptive thresholding. A kernel size of 8 by 8 pixel is used.
-
Determines the mean value of an image and used the value as threshold value for the next image processed.
-
Example - Histogram thresholding
-
Examples - Shows how to extract a sub kernel from a filter to obtain the original image data. This example performs a simple local adaptive binarization.
-
'Functional Example for Specific Operators of Library Accumulator and Library Logic'
Examples - Demonstration of how to use the operator