Chapter 4. Color Image Processing
Chapter 4. Color Image Processing
1. Color Fundamentals
2. Color Models
3. Basics of Full-Color Image Processing
4. Color Transformations
5. Color Image Smoothing and Sharpening
❖Color spectrum
❖Wavelengths
❖The absorption of light by the red, green, and blue cones in the eye
Absorption of
light by the
red, green,
and blue
cones in the
human eye as
a function of
wavelength.
➢ Hue is an attribute associated with the dominant wavelength in a mixture of light waves. Hue
represents dominant color as perceived by an observer.
➢ Saturation refers to the relative purity or the amount of white light mixed with a hue. The pure
spectrum colors are fully saturated.
➢ Hue and saturation taken together are called chromaticity. → a color may be characterized by its
brightness and chromaticity
❖Color gamut
1. Color Fundamentals
2. Color Models
3. Pseudocolor Image Processing
4. Basics of Full-Color Image Processing
5. Color Transformations
6. Color Image Smoothing and Sharpening
❖Color model
➢ The purpose of a color model (also called a color space or color system) is to facilitate the
specification of colors in some standard way.
(2) a subspace within that system, such that each color in the model is represented by a single
point contained in that subspace.
➢ RGB (red, green, blue) model: color monitors and a broad class of color video cameras
➢ CMY (cyan, magenta, yellow) and CMYK (cyan, magenta, yellow, black) models: printing
➢ HSI (hue, saturation, intensity) model: closely with the way humans describe and interpret color
➢ The number of bits used to represent each pixel in RGB space is called the pixel depth.
➢ The term full-color image is used often to denote a 24-bit RGB color image.
➢ The total number of possible colors in a 24-bit RGB image is (28 )3 = 16, 777, 216.
➢ CMY to CMYK:
▪ Let:
Color detection
❖The HSI Color Model
The HSI color model based on (a) triangular, and (b) circular color planes. The triangles and
circles are perpendicular to the vertical intensity axis.
RG sector (00 H < 1200): GB sector (1200 H < 2400): BR sector (2400 H < 3600):
HSI components of the image in Fig. 1 (p. 14): (a) hue, (b) saturation, and (c) intensity images.
(a) RGB image and the components of its corresponding (a)-(c) Modified HSI component images.
HSI image: (b) hue, (c) saturation, and (d) intensity. (d) Resulting RGB image.
Rafael C. Gonzalez, Richard E. Woods, “Digital image processing,” Pearson (2018). 24
Chapter 4. Color Image Processing
1. Color Fundamentals
2. Color Models
3. Basics of Full-Color Image Processing
4. Color Transformations
5. Color Image Smoothing and Sharpening
(2) the operation on each component of a vector (i.e., each voxel) must be independent of the
other components.
Spatial neighborhoods for grayscale and RGB color images. Observe in (b) that a single
pair of spatial coordinates, (x, y), addresses the same spatial location in all three images.
Rafael C. Gonzalez, Richard E. Woods, “Digital image processing,” Pearson (2018). 27
Chapter 4. Color Image Processing
1. Color Fundamentals
2. Color Models
3. Basics of Full-Color Image Processing
4. Color Transformations
5. Color Image Smoothing and Sharpening
❖Formulation
➢ Color transformations for multispectral images
❖Formulation
Adjusting the intensity of an image using color transformations. (a) Original image. (b) Result of decreasing
its intensity by 30% (i.e., letting k = 0.7). (c) The required RGB mapping function. (d)–(e) The required
CMYK mapping functions. (f) The required CMY mapping function. (g)–(h) The required HSI mapping
functions. 30
Rafael C. Gonzalez, Richard E. Woods, “Digital image processing,” Pearson (2018).
4. Color Transformations
❖Color Slicing
EXAMPLE: Color slicing
➢ Using a cube of width W
1. Color Fundamentals
2. Color Models
3. Basics of Full-Color Image Processing
4. Color Transformations
5. Color Image Smoothing and Sharpening
HSI components of the RGB color image. (a) Hue. (b) Saturation. (c) Intensity.
Image smoothing with a averaging kernel. (a) Result of processing each RGB
(a) RGB image. (b) Red component image. component image. (b) Result of processing the intensity component of the HSI
(c) Green component. (d) Blue component. image and converting to RGB. (c) Difference between the two results.
Rafael C. Gonzalez, Richard E. Woods, “Digital image processing,” Pearson (2018). 36
5. Color Image Smoothing and Sharpening
Image sharpening using the Laplacian. (a) Result of processing each RGB channel. (b)
Result of processing the HSI intensity component and converting to RGB. (c) Difference
between the two results.