Mask an Image

NI Vision Assistant

Mask an Image

Main Tab

  1. In the Step Name control, enter a descriptive name for the step.
  2. Verify that the Reposition Region of Interest option is enabled if you want to link the region of interest specified in this step to a previously defined coordinate system.

    Link the region of interest to a coordinate system if the position of the object under inspection changes from image to image, and you need to adjust the position of the region of interest to match the new location of the object.

Mask Tab

Choose one of the following methods to mask an image:

  • Mask an image from a ROI
    1. Select Create from ROI.
    2. Select an ROI tool from the toolbar and draw the region of interest.
    3. Click Set ROI.
    4. Select mask options.
    5. Click OK to add this step to the script.
    Tip  You can select a new region of interest by selecting an ROI tool and selecting a new area in the image.
  • Mask an Image from an Image File
    1. Select Create from Image File.
    2. Click the Browse button, navigate to the location of the image file, select the file, and click OK.
    3. Select mask options.
    4. Click OK to add this step to the script.