CWMVFindPatternOptions

NI Vision for Visual Basic

CWMVFindPatternOptions

CWMVFindPatternOptions contains optional parameters used by the CWMachineVision.FindPattern method. These optional parameters include parameters to CWIMAQVision.MatchPattern2 as well as properties that indicate what overlays to add to the image.

Properties

MatchModeTechnique to use when looking for the template pattern in the image. The default is cwimaqMatchShiftInvariant.
MinimumMatchScoreSmallest score a match must have to be considered valid. The default is 800.
NumMatchesRequestedNumber of valid matches expected. The default is 1.
RotationAngleRangesCollection of angle ranges, where each range specifies how much you expect the color template pattern to rotate in the image. Each range is specified by a lower angle and an upper angle, both of which are expressed in degrees.
ShowResultBoolean that specifies if the centers and bounding rectangles of the patterns found are overlaid on the result image. The default is True.
ShowSearchAreaBoolean that specifies if the search area is overlaid on the image. The default is False.
SubPixelAccuracyBoolean that determines if the match results should be returned with subpixel accuracy. The default is False.

See Also

CWMachineVision.FindPattern

CWIMAQVision.MatchPattern2