Example: Color Pattern Matching

NI Vision for Visual Basic

Example: Color Pattern Matching

This example shows how to use the color pattern matching tools in NI Vision.

Color pattern matching is the technique used to quickly locate known reference or fiducial patterns in an image. Pattern matching is the key to many applications. You can use color pattern matching to provide an application with information about the presence or absence, number, and location of the model within an image.

You use color pattern matching 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. If the measurements fall outside of set tolerance levels, the component is rejected. Gauging sometimes is used in-line with the manufacturing process. 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\Color Pattern Matching