InspectEdgeForDefect

Used to construct an edge model to perform advanced edge analysis on the edges or edge pairs returned by an InspectEdge function. This data is used to construct a best-fit line fit to compare found edges or edge pairs against, detecting defects and gaps, such as the distance from the line fit.

InspectEdgeForDefect Overview

After inserting the function into the spreadsheet, a reference must be made to an Inspect data structure output by an InspectEdge function. Once the reference to the InspectEdge function is established, the edge model is created by configuring the parameters of the InspectEdgeForDefect function. The edge model involves defining the following:

  • The type of line fit - straight or circular.
  • The type of edge - single or edge pair.
  • The type of edge transition - white to black or vice-versa.
  • The edge scoring criteria that will be used to filter unwanted edges.
  • The line fit criteria that will be used to filter unwanted edges from the line fit.
  • The tolerances for defects or gaps to be encountered.

Once the edge model has been established, the function compares edge candidates against the edge model and report deviations from the model.

Example - Passing Straight Line Fit Edge

Example - Failing Straight Line Fit Edge

Example - Failing Circular Line Fit Edge