Choosing a color representation sensitivity, Choosing a color representation sensitivity -12 – National Instruments IMAQTM User Manual

Page 41

Advertising
background image

Chapter 3

Making Grayscale and Color Measurements

IMAQ Vision for Visual Basic User Manual

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 the

Color Sensitivity

section of Chapter 5,

Performing Machine

Vision Tasks

.

1

Regions used to learn color information

1

Advertising