Detect Defects Controls

NI Vision Builder

Check for Presence

Detect Defects Controls

Main Tab

The following controls are available on the Main tab.

Control Name Description
Step Name Name to give the step.
Template Image Image to use as the template.
Template Size Size of the template image in pixels.
New Template Launches the NI Vision Template Editor, in which you can learn a template and save the result as a template image file.
Edit Template Launches the NI Vision Template Editor, in which you can modify a template and save the result as a template image file.
Load from File Launches a dialog box in which you can browse to a template image file and specify the file as the template to use.
Note  When you load a template from file, the template can be any image file. If the template already contains pattern matching and/or geometric pattern matching information, the golden template information will be saved to the same file. If the specified image does not contain any template information, you will be prompted to save the file to a new location.
Template Path Displays the location of the template image file.

Alignment Tab

The following controls are available on the Alignment tab.

Control Name Description
Center X X-coordinate of the center point in the region of interest.
Center Y Y-coordinate of the center point in the region of interest.
Angle (deg) Rotation angle of the region of interest, in degrees.
Reposition Region of Interest When enabled, the step dynamically repositions the region of interest based on a coordinate system you built in a previous step.
Reference Coordinate System Coordinate system to which you want to link the region of interest.
Scale (%) Scale of the golden template in the inspection image expressed as a percentage.
Alignment Correction Specifies the algorithm to use to correct for slight misalignments between the golden template and inspection image. The following options are available:
  • None—No alignment correction.
  • Perspective—Adjusts the inspection image to correct for minor variations in alignment or perspective.
Display Specifies what is displayed in the Main window. The following options are available:
  • Overlay—Displays only the bright and dark defects.
  • Defects—Displays the bright and dark defects as an overlay on the inspection image.

Settings Tab

The following controls are available on the Settings tab.

Control Name Description
Look For Specifies the type of defects to search for in the image.
  • All Defects—Searches for areas in the image that are brighter and/or darker than the corresponding area in golden template.
  • Bright Defects—Searches for areas in the image that are brighter than the corresponding area in the golden template.
  • Dark Defects—Searches for areas in the image that are darker than the corresponding area in the golden template.
Intensity Specifies the algorithm used to resolve differences in the intensity of the inspection image compared to the intensity of the golden template.
  • No Change—Does not adjust the intensity of the golden template and the inspection image.
  • Histogram Matching Normalization—Adjusts the inspection image histogram to be similar to the histogram of the golden template.
  • Average Matching Normalization—Adjusts the inspection image so the mean pixel value of the inspection image equals the mean pixel value of the golden template.
Ignore Edges Specifies whether edges are ignored during the comparison process. If enabled, you can set the thickness of the edges to ignore using the Edge Thickness control.
Edge Thickness Specifies the thickness of the edges to ignore.
Bright Level Threshold value for determining the minimum pixel intensity difference between the golden template and the inspection image used for determining bright defects.
Dark Level Threshold value for determining the minimum pixel intensity difference between the golden template and the inspection image used for determining dark defects.
Bright Defects Color used to display bright defects.
Dark Defects Color used to display dark defects.
Display Specifies what is displayed in the main window.
  • Overlay—Displays only the bright and dark defects.
  • Defects—Displays the bright and dark defects as an overlay on the inspection image.

Filter Tab

The following controls are available on the Filter tab.

Control Name Description
Use Filter Criteria Specifies whether you want to use an object filter to remove defects from the golden template comparison results.
Filter Criteria Table Displays the current object filter settings.
Configure Launches the Configure Object Filter dialog box, which is used to define the object filter criteria.
Display Specifies what is displayed in the main window.
  • Overlay—Displays only the bright and dark defects.
  • Defects—Displays the bright and dark defects as an overlay on the inspection image.

Limits Tab

The following controls are available on the Limits tab.

Control Name Description
Maximum Total Defect Area When enabled, the area of the defects in the image must be less than the specified value in order for the step to pass.
Maximum Largest Defect Area When enabled, the area of the largest defect must be less than the specified value in order for the step to pass.
Maximum Percent Defect When enabled, the percentage of the image that contains defects must be less than the specified value in order for the step to pass.
Maximum Number of Defects When enabled, the total number of defects found in the image must be less than the specified value in order for the step to pass.