Operators

LabView NI Vision

Operators

Owning Palette: Image ProcessingInstalled With: NI Vision Development Module

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 Add

Adds two images or an image and a constant.

IMAQ Subtract

Subtracts one image from another or a constant from an image.

IMAQ Absolute Difference

Subtracts one image from another or a constant from an image and returns the absolute value of the difference.

IMAQ And

Performs an AND or NAND operation on two images or an image and a constant.

IMAQ Or

Performs an OR or NOR operation on two images or an image and a constant.

IMAQ Multiply

Multiplies two images or an image and a constant.

IMAQ Divide

Divides one image by another image or an image by a constant.

IMAQ LogDiff

Keeps bits found in Image Src A that are absent from Image Src B.

IMAQ Xor

Performs an XOR or XNOR operation on two images or an image and a constant.

IMAQ MulDiv

Computes a ratio between two images. Each pixel in Image Src A is multiplied by the integer value specified in the input Constant before being divided by the equivalent pixel found in Image Src 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, Image Src A is the acquired image, and Image Src B is the light background.

IMAQ Modulo

Executes modulo division (remainder) of one image by another or an image by a constant.

IMAQ Mask

Recopies the Image Src into the Image Dst. If a pixel value is 0 in the Image Mask, the corresponding pixel in Image Dst is set to 0.

IMAQ Compare

Performs comparison operations between two images or an image and a constant. An operation between an image and a constant occurs when Image Src B is not connected.