Operator Library: Logic
Library: Logic
The operator IS_InRange sets the output to a logical "1" if the value at the input link I is within the interval defined by parameters From and To, otherwise the output is "0".
Link Parameter | Input Link I | Output Link O |
---|---|---|
Bit Width | [1, 63] unsigned, [2, 64] signed | 1 |
Arithmetic | {unsigned, signed} | unsigned |
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 | VAF_GRAY | as I |
Color Flavor | FL_NONE | as I |
Max. Img Width | any | as I |
Max. Img Height | any | as I |
from | |
---|---|
Type | dynamic write parameter |
Default | 0 |
Range | Same as range of input link I |
Smallest value in range. |
to | |
---|---|
Type | dynamic write parameter |
Default | 255 |
Range | Same as range of input link I |
Biggest value in range. |
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 the embedded ALU elements of the FPGA. LUT: The operator uses the LUT elements of the FPGA.
|
The use of operator IS_InRange is shown in the following examples:
-
Examples- Geometric Transformation and Defect Detection