Subtracting a grayscale image from a grayscale image

NI Vision Builder AI Vision Assistant

Subtracting a grayscale image from a grayscale image

  1. Click Grayscale»Operators or click Operators in the Grayscale tab of the Processing Functions palette.
  2. Select Subtract from the Operators list.
  3. Select the Image option.
  4. Select the image buffer that contains the image that you are subtracting from the source image.
  5. Click OK to subtract the images and add this step to the script.
Notes  
  • You must already have an image stored in an image buffer before you can add, subtract, multiply, or divide two images. Click Image»Image Buffer to store a copy of the processed image in a buffer. You can insert the Image»Image Buffer step anywhere in a script.
  • The buffer image must be the same size and type as the source image.

Related Topics

Adding a constant to a grayscale image

Adding a grayscale image to a grayscale image

Comparing a grayscale image with a constant

Comparing grayscale images

Dividing a grayscale image by a constant

Dividing a grayscale image by a grayscale image

Image Buffer (Image»Image Buffer)

Operators (Grayscale»Operators)

Multiplying a grayscale image by a constant

Multiplying a grayscale image by a grayscale image

Retrieving an image from an image buffer

Storing an image in an image buffer

Subtracting a constant from a grayscale image

Using the Operators function