Operators
- Updated2023-02-21
- 2 minute(s) read
Use the Operators VIs to perform arithmetic and bit-wise operations in NI Vision. Use some of these VIs to add, subtract, multiply, and divide an image with other images or constants. Use other VIs in this palette to apply logical operations and make pixel comparisons between an image and other images or a constant.
| Palette Object | Description |
|---|---|
| IMAQ FPGA Add |
Adds two images or an image and a constant. |
| IMAQ FPGA Subtract |
Subtracts one image from another or a constant from an image. |
| IMAQ FPGA Multiply |
Multiplies two images or an image and a constant. |
| IMAQ FPGA Divide |
Divides one image by another image or an image by a constant. |
| IMAQ FPGA Absolute Difference |
Subtracts one image from another or a constant from an image and returns the absolute value of the difference. |
| IMAQ FPGA MulDiv |
Computes a ratio between two images. Each pixel in Pixel Bus In A is multiplied by the integer value specified in the input Constant before being divided by the equivalent pixel found in Pixel Bus In B. To avoid losing information, a temporary variable giving higher definition is used to perform the operation. If the background is lighter than the image, this function can correct the background. In a background correction image, Pixel Bus In A is the acquired image, and Pixel Bus In B is the light background. |
| IMAQ FPGA Modulo |
Performs modulo division (remainder) of one image by another or an image by a constant. |
| IMAQ FPGA And |
Performs an AND or NAND operation on two images or an image and a constant. |
| IMAQ FPGA Or |
Performs an OR or NOR operation on two images or an image and a constant. |
| IMAQ FPGA Xor |
Performs an XOR or XNOR operation on two images or an image and a constant. |
| IMAQ FPGA LogDiff |
Performs a logic difference between two images or an image and a constant. |
| IMAQ FPGA Mask |
Copies the source image into the destination image. |
| IMAQ FPGA Compare |
Compares two images or an image and a constant. |