MatchMode Property

NI Vision for Visual Basic

MatchMode Property

Syntax

CWIMAQShapeDetectionOptions.MatchMode

Data Type

CWIMAQGeometricMatchModes

You can use the following constants with this data type:

  • cwimaqGeometricMatchOcclusionInvariant—Searches for occurrences of the template image in the inspection image, allowing for a specified percentage of the template image to be occluded.
  • cwimaqGeometricMatchRotationInvariant—Searches for occurrences of the template image in the inspection image with reduced restriction on the rotation of the template image.
  • cwimaqGeometricMatchScaleInvariant—Searches for occurrences of the template image in the inspection image with reduced restriction on the size of the template image.
  • cwimaqGeometricMatchShiftInvariant—Searches for occurrences of the template image in the inspection image, assuming that the template image is not rotated more than ± 5 degrees.

Purpose

Specifies the method used when looking for geometric shapes in an image.

Remarks

You can specify more than one mode by adding one or more constants. The default value is cwimaqGeometricMatchRotationInvariant.