Color Operators

NI Vision Assistant

Color 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.
  • 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. You can select only those image buffers that contain 8-bit or RGB images of the same 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.