Chapter5 MachineVision
IMAQVision for LabWindows/CVI User Manual 5-16 ni.com
incorrectresults. To avoid this, reduce the search area so that only the
desired patternlies within thesearch area.
The time required to locate a pattern in an image depends on both the
templatesize and the search area. By reducing the search area or increasing
the templatesize, you can reduce the required search time.
In manyinspectio n applications, you havegeneral information ab out the
locationof thefiducial. You should use this information to define a search
area. Forexample, in a typical component placement application, each
printedcircuit board (PCB) being tested may not be placed in the same
location with the same orientation. The location of the PCB in various
imagescan moveand rotate within a known range of values, as illustrated
inFigure 5-11.Figure 5-11ashows the template used to locate the PCB in
theim age. Figure 5-11b showsan i mage containing a PCB with a fiducial
youwant to locate. Notice the search area around the fiducial. If you know
before them atching processbegins that the PCB can shift or rotate in the
image within a fixedrange (as shown in Figure 5-11c and Figure 5-11d,
respectively),then you can limit the search for the fiducial to a small region
of the image.
Figure5-11. Selecting a Search Area for Grayscale Pattern Matching
Setting Matching Parameters and Tolerances
Every pattern matching algorithm makes assumptions about the images
and pattern matching parameters used in machine vision applications.
Theseassum ptions work for a high percentage of the applications.
d.
c.
b.
a.