Chapter3 Grayscaleand Color Measurements
IMAQVision for LabWindows/CVI User Manual 3-8 ni.com

image.Using imaqReplaceColorPlanes(), you can reassemble a color

imagefrom a setof three 8-bit images,where each image becomes one of

the three primary components. Figure 3-4 illustrates how a color image

breaksd owninto its three c omponents.

Figure3-4. Primary Components of a Color Image

Use imaqExtractColorPlanes()to extract the red, green, blue, hue

saturation, intensity,luminance, or value plane of a color image into an

8-bit image.

Comparing Colors

Youcan use the color matching capability of IMAQ V ision to compare or

evaluate the color content of an image or regions in an image.

Followthese steps to compare colors using color matching:

1. Selectan image c ontaining the color information that you want to use

asa reference. Thecolor information canconsist of a single color o r

multiple dissimilar colors, such as red and blue.

32
Color
Image
8-bitImage Processing
Saturation
Value
Hue
Green
Blue
Red
Saturation
Intensity
Hue
Saturation
Luminance
Hue 32
Color
Image
Saturation
Value
Hue
Green
Blue
Red
Saturation
Intensity
Hue
Saturation
Luminance
Hue
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
or
or
or
or
or
or