Color Matching

NI Vision Assistant

Color Matching

Learns the color content of a region of an image and compares it to the color content of another region.

Main Tab

The following controls are available on the Main tab.

  • Step Name—Name to give the step.
  • 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.

Template Tab

The following controls are available on the Template tab.

  • Template Path—Displays the location of the template image file.
  • Create Template—Learns the colors enclosed by the ROI you draw on the image and saves the ROI as a color image file. Specifies that file as the template color to match.
  • Load from File—Launches a dialog box in which you can browse to a color image file and specify that file as the search template.
  • Color Sensitivity—Specifies the level of color sensitivity in the image. The default is Low sensitivity. Select High sensitivity to distinguish small differences in hue.
  • Sat. Threshold—Specifies the threshold used to distinguish between two colors having the same hue values. For more information about saturation threshold, refer to the NI Vision Concepts Manual.

Settings Tab

The following controls are available on the Settings tab.

  • Minimum Match Score—Specifies the minimum score an instance of the template can have to be considered a valid match. This value can range from 0 to 1000, where a score of 1000 indicates a perfect match.

Results

Displays the following information after searching the ROI for colors:

  • Pass/Fail—Indicates if the ROI contains colors that are equal to or greater than the Minimum Match Score.
  • Score—Score of each valid match. Score values can range from 0 to 1000, where a score of 1000 indicates a perfect match.