Module 4 Chapter 6 - Color Image Processing
Module 4 Chapter 6 - Color Image Processing
Image Processing
6.1 COLOR FUNDAMENTALS
Concept:
Color is the visual effect that happens when light reflects off an object and
enters our eyes. When light of different wavelengths hits our eyes, specialized
cells called cones respond to specific ranges of light wavelengths. Humans
have three main types of cones that detect red, green, and blue light, which we
often abbreviate as RGB.
Example:
Imagine looking at a rainbow. It has a sequence of colors from violet to red.
Each color in the rainbow corresponds to a different wavelength of light: violet
has a shorter wavelength, while red has a longer wavelength. When we see
red, it’s because the light has a wavelength that stimulates the “red” cones in
our eyes. The visible spectrum ranges approximately from 380 to 780 nm.
Blue: ~435.8 nm
Green: ~546.1 nm
Red: ~700 nm
Fig: Absorption of light by the red, green, and blue cones in the human eye as
a function of wavelength.
Characteristics:
3. Saturation: Refers to relative purity or the amount of white light mixed with
a hue. Imagine adding white paint to red paint - as you add more white, the
red becomes less saturated
Key Points:
Chromatic Light: Colors like red, green, blue, etc., are called chromatic
because they have hue and saturation. For example, a red apple reflects red
wavelengths, which is why it appears red to us.
1. RGB Model:
This model uses three numbers to represent colors: one for red, one for
green, and one for blue. Each number ranges from 0 to 255. For instance:
2. CMYK Model:
CMYK stands for Cyan, Magenta, Yellow, and Key (Black). It’s used in
printing because it represents the colors of inks and dyes. Unlike screens
that emit light, printed colors are produced by layering inks.
Real-life example: When you print a color photo, the printer combines
different amounts of cyan, magenta, yellow, and black inks to produce the
full range of colors.
3. HSI Model:
The HSI (Hue, Saturation, Intensity) model represents colors more like the
way we naturally see them. Hue is the type of color (like red or blue),
Saturation is the color’s vividness, and Intensity is the brightness.
Real-life example: The HSI model is often used in image editing software to
separate color from brightness. For instance, if you want to adjust only the
brightness of a photo without changing its colors, you can use the HSI
model to do this more easily.
Example:
If a photo appears too dark, you can increase the brightness to make it look
clearer. Similarly, if it lacks contrast (making it look flat), adjusting the contrast
can help make the details stand out.
Key Points:
1. Smoothing:
1. Component-wise:
Real-life example: When you take a photo in low light, it might appear
grainy. Applying a smoothing filter can help make the photo look smoother
by reducing this graininess.
2. Sharpening:
Sharpening increases the contrast at the edges within an image, making
details clearer. It’s especially useful for photos that are slightly blurry.
Laplacian is commonly used for sharpening
Real-life example: If you take a picture of a building and it looks slightly out
of focus, sharpening can bring out the lines and edges of the building,
making it look clearer.
HSI Model:
HSI Model separates color into Hue (type of color, 0°–360°), Saturation
(vibrancy), and Intensity (brightness), aligning with human color perception.
Advantages:
Disadvantages:
RGB Model:
RGB Model represents color by mixing Red, Green, and Blue intensities,
commonly used in digital systems.
Advantages:
Simple and fast since most images are already in RGB format.
Disadvantages:
Real-life Applications:
Key Learnings:
1. Color Perception: Human eyes perceive color through the interaction of
light wavelengths with cone cells, detecting red, green, and blue light.
2. Primary Colors of Light: Red (~700 nm), green (~546 nm), and violet-blue
(~436 nm) form the basis of color mixing.
3. Color Models:
RGB Model: Represents colors via combinations of red, green, and blue
intensities, widely used in digital screens.
6. Image Segmentation: Divides images into regions based on color (e.g., HSI
for separating hues, RGB for direct intensity comparison), useful in fields
like medical imaging, self-driving cars, and agriculture.