Example: Pattern Matching

NI Vision for Visual Basic

Example: Pattern Matching

This example shows how to use the pattern matching tools in NI Vision. Pattern matching is the technique used to quickly locate known reference or fiducial patterns in an image. You can use pattern matching to provide an application with information about the presence or absence, number, and location of the model within an image.

Pattern matching is used in three general applications areas:

  • Alignment—Determine the position and orientation of a known object by locating features. The features are used as points of reference on the object.
  • Gauging—Measure lengths, diameters, angles, and other critical dimensions. Gauging sometimes is used in-line with the manufacturing process. If the measurements fall outside of set tolerance levels, the component is rejected. If the measurements are made off-line, a sample of components is used to determine the quality of a lot or batch of manufactured components.
  • Inspection—Detect simple flaws, such as missing parts or unreadable print.
  • Example Location

    <Vision>\Examples\MSVB\2. Functions\Pattern Matching