Figure 3-4. primary components of a color image, Comparing colors, Comparing colors -8 – National Instruments IMAQ Vision for Measurement Studio User Manual

Page 34

Advertising
background image

Chapter 3

Grayscale and Color Measurements

IMAQ Vision for LabWindows/CVI User Manual

3-8

ni.com

image. Using

imaqReplaceColorPlanes()

, you can reassemble a color

image from a set of three 8-bit images, where each image becomes one of
the three primary components. Figure 3-4 illustrates how a color image
breaks down into its three components.

Figure 3-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

You can use the color matching capability of IMAQ Vision to compare or
evaluate the color content of an image or regions in an image.

Follow these steps to compare colors using color matching:

1.

Select an image containing the color information that you want to use
as a reference. The color information can consist of a single color or
multiple dissimilar colors, such as red and blue.

32

Color

Image

8-bit Image 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

Advertising