Chapter5 MachineVision
IMAQVision for LabWindows/CVI User Manual 5-22 ni.com
Figure5-12. Selectinga Search Area for Color Pa ttern Matching
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.
Setting Matching Parameters and Tolerances
Every color pattern matching algorithm makes assumptions about the
images and color pattern matching parameters used in machine vision
applications. These assumptions work for a high percentage of the
applications.
In some applications, the assumptions used in the algorithm are not
optimal.In such cases, you must modify the color pattern matching
parameters.Knowing your particular application and the images youwant
to processi suseful in selecting the pattern matching parameters. Use the
optionsparameter of imaqMatchColorPattern() to set these elements.
1 Search Area for 20 Amp Fuses 2 Search Area for 25 Amp Fuses
1 2