National Instruments IMAQTM 用户手册

下载
页码 121
Chapter 3
Making Grayscale and Color Measurements
3-12
ni.com
fuses much better and results in high match scores—around 800—for both 
the fuses. You can use an unlimited number of samples to learn the 
representative color spectrum for a specified template.
Figure 3-8.  Using Multiple Regions to Learn Color Distribution
Choosing a Color Representation Sensitivity
When you learn a color, you need to specify the granularity required to 
specify the color information. An image that contains a few well-separated 
colors in the color space requires a lower granularity to describe the 
color than an image that contains colors that are close to one another 
in the color space. Use the 
ColorSensitivity
 parameter of 
CWIMAQVision.LearnColor
 to specify the granularity you want to 
use to represent the colors. For more information about color sensitivity, 
refer to th
 section of Chapter 5, 
1
Regions used to learn color information
1