Operator Library: Arithmetics
The operator DIV divides the values at input link I1 by the values at input link I2. At output link O, the integer result of the division is provided. At output link R the remainder of the division is provided.
A division by zero is undefined at both outputs.
Resources | |
---|---|
A division requires many FPGA resources. Try to use a minimized parallelism when performing a division. For divisions by a power of two value (2^n) use the shift operator ShiftRight instead. |
Property | Value |
---|---|
Operator Type | O |
Input Links | I1, dividend / numerator input I2, divisor / denominator input |
Output Links | O, integer quotient output R, remainder output |
The use of operator DIV is shown in the following examples:
-
Examples - A high speed and robust laser line detection algorithm. The algorithm determines center of gravity coordinates to obtain sub-pixel resolution results.
-
Examples - The blob analysis operator is applied to an input camera image. The applet shows the usage of the blob data in the applet. In this case, the object with the maximum are is localized and the coordinates are used to cut out the object from the original image.
-
Example - Calculates image moments orientation and eccentricity
-
Example - Line Shear example with linear interpolation.