Chapter 5 Performing Machine Vision Tasks
IMAQ Vision for Visual Basic User Manual 5-6 ni.com
1. Define a template that represents the part of the object that you want
to use as a reference feature. For more information about defining a
template, refer to the Find Measurement Points section.
2. Define a rectangular search area in which you expect to find the
template.
3. Set the MatchMode property of the
CWMVFindCTUsingPatternOptions object to
cwimaqRotationInvariant when you expect the template
to appear rotated in the inspection images. Otherwise, set it to
cwimaqShiftInvariant.
4. Choose the results you want to overlay onto the image.
5. Choose the mode for the method. To build a transformation for the
firsttime, set the FirstRun parameter to True. To update the
transformation in subsequent images, set this parameter to False.