Operators

NI Vision Assistant

Operators

Performs arithmetic and logical operations on images. The following controls are available.

  • Step Name—Name to give the step.
  • Operators
    Image Source Opens the original input image.
    Add Adds a constant or an image to the original input image. This is a pixel-by-pixel operation.
    Subtract Subtracts a constant or an image from the original input image. This is a pixel-by-pixel operation.
    Multiply Multiplies the original input image by a constant or another image. This is a pixel-by-pixel operation.
    Divide Divides the original input image by a constant or another image. This is a pixel-by-pixel operation.
    Multiply Divide Computes a ratio between two images. Each pixel in the original image is multiplied by the constant before being divided by the equivalent pixel found in another image stored in the buffer. This is a pixel-by-pixel operation.
    Modulo Executes modulo division (remainder) of the original input image and a constant or another image stored in the buffer. This is a pixel-by-pixel operation.
    Absolute Difference Subtracts one image from another or a constant from an image and returns the absolute value of the difference.
    And Performs a logical AND operation between the original input image and a constant or another image stored in the buffer. This is a bit-wise operation.
    Not And Performs a logical NAND operation between the original input image and a constant or another image stored in the buffer. This is a bit-wise operation.
    Or Performs a logical OR operation between the original input image and a constant or another image stored in the buffer. This is a bit-wise operation.
    Not Or Performs a logical NOR operation between the original input image and a constant or another image stored in the buffer. This is a bit-wise operation.
    Exclusive Or Performs an Exclusive OR operation between the original input image and a constant or another image stored in the buffer. This is a bit-wise operation.
    Not Exclusive Or Performs an Exclusive NOR operation between the original input image and a constant or another image stored in the buffer. This is a bit-wise operation.
    Logical Difference Finds the logical difference between the original input image and a constant or another image stored in the buffer. This is a bit-wise operation.
    Mask Replaces pixels in the original input image that correspond to pixels with value 0 in the image mask as 0. The image mask is an 8-bit image that specifies the regions in the original input image to be modified. This is a pixel-by-pixel operation.
    Average Calculates the average of the original input image and a constant or another image stored in the buffer. This is a pixel-by-pixel operation.
    Min Extracts the smallest value between the original input image and a constant or another image stored in the buffer. This is a pixel-by-pixel operation.
    Max Extracts the largest value between the original input image and a constant or another image stored in the buffer. This is a pixel-by-pixel operation.
    Clear if < If pixel (x, y) in the original input image is less than a constant or pixel (x, y) in another image, the resulting pixel (x, y) equals 0. Otherwise, the resulting pixel (x, y) equals pixel (x, y) in the original input image. This is a pixel-by-pixel operation.
    Clear if < or = If pixel (x, y) in the original input image is less than or equal to a constant or pixel (x, y) in another image, the resulting pixel (x, y) equals 0. Otherwise, the resulting pixel (x, y) equals pixel (x, y) in the original input image. This is a pixel-by-pixel operation.
    Clear if = If pixel (x, y) in the original input image is equal to a constant or pixel (x, y) in another image, the resulting pixel (x, y) equals 0. Otherwise, the resulting pixel (x, y) equals pixel (x, y) in the original input image. This is a pixel-by-pixel operation.
    Clear if > or = If pixel (x, y) in the original input image is greater than or equal to a constant or pixel (x, y) in another image, the resulting pixel (x, y) equals 0. Otherwise, the resulting pixel (x, y) equals pixel (x, y) in the original input image. This is a pixel-by-pixel operation.
    Clear if > If pixel (x, y) in the original input image is greater than a constant or pixel (x, y) in another image, the resulting pixel (x, y) equals 0. Otherwise, the resulting pixel (x, y) equals pixel (x, y) in the original input image. This is a pixel-by-pixel operation.
  • Constant—Constant value to be used in an operation, when selected.
  • Image—Image from an active buffer to be used in an operation, when selected. Vision Assistant allows you to select only image buffers that contain images of the same type and size as the image source. Click Image»Image Buffer, or select Image Buffer in the Image tab of the Processing Functions palette to store an image in an empty image buffer.