National Instruments IMAQTM Manual Do Utilizador

Página de 121
Chapter 5
Performing Machine Vision Tasks
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 
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 
first time, set the 
FirstRun
 parameter to 
True
. To update the 
transformation in subsequent images, set this parameter to 
False
.