Chapter3 Grayscaleand Color Measurements
©NationalInstruments Corporation 3-13 IMAQVision for LabWindows/CVI User Manual
Ignoring Learned Colors
Ignore certain color components in color matching by replacing the
corresponding component in the input color spectrum array to 1. For
example, by replacing the last component in the color spectrum with 1,
colormatching ignores the color white. By replacing the second to last
componentin the color spectrum, color matching ignores the colorblack.
To ignore other color components in color matching, determine the index
tothe color spectrum by locating the corresponding bins in the color wheel,
whereeach bin corresponds to a component in the color spectrum array.
Ignoring certain colors such as the background color results in a more
accuratecolor matching score. Ignoring the background color also provides
moreflexibility when defining the regions of interest in the color matching
process.Ignoring certain colors, such as white color created by glare on a
metallicsurface, also improves the accuracy ofthe color matching.
Experimentlearning the color info rmation on different parts of the images
todetermine w hich colors to ignore. For more information about the color
wheeland color bins, see Chapter 14, Color Inspection,intheIMAQVision
Concepts Manual.