Specifications
Color Space Conversion
9-1
9
This chapter describes the Image Processing Library functions that perform
color space conversion. The library supports the following color space
conversions:
• Reduction from high bit resolution color to low bit resolution color
• Conversion of absolute color images to and from palette color images
• Color model conversion
• Conversion from color to gray scale and vice versa
Table 9-1 lists color space conversion functions. For information on the
absolute-to-palette and palette-to-absolute color conversion, see “Working
in the Windows DIB Environment” in Chapter 4.
Table 9-1 Color Space Conversion Functions
Conversion Type Function Name Description
Reducing Bit
Resolution
iplReduceBits
Reduces the number of bits
per channel in an image.
Bitonal to gray scale
iplBitonalToGray
Converts bitonal images to 8-
and 16-bit gray scale images.
Color to gray scale
and vice versa
iplColorToGray
iplGrayToColor
Convert color images to and
from gray scale images.
Color Models
Conversion
iplRGB2HSV,
iplHSV2RGB
Convert RGB images to and
from HSV color model.
iplRGB2HLS,
iplHLS2RGB
Convert RGB images to and
from HLS color model.
continued
☞