Chapter 6 Color Image Processing
Chapter 6 Color Image Processing
Submitted to
Dr. Basant Kumar
(Associate Professor)
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
ALLAHABAD-211004, INDIA
Presented By:
Group 1:
Shubham Pasari (20165007)
Somnath Shukla (20162068)
Udayraj Vashishtha (20165036)
Umesh Meena (20165112)
Group 2: Group 3:
Sarthak Pathak (20165024) Achal Kumar (20165121)
Shiladitya Gangopadhyay (20165027) Aman Goel (20165094)
Shubham Tripathi (20165074) Kavish Gupta (20165113)
Shubham Yadav (20166030) Aman Rajput (20165039)
Spectrum of White Light
Fig 1.1 Color Spectrum seen by passing white light through a prism
•Rods
–Long and thin
–Large quantity (~ 100 million)
–Provide scotopic vision (i.e., dim light vision or at low
illumination)
–Only extract luminance information and provide a general overall
picture
• Cones
–Short and thick, densely packed in fovea (center of retina)
–Much fewer (~ 6.5 million) and less sensitive to light than rods
–Provide photopic vision (i.e., bright light vision or at high illumination)
–Help resolve fine details as each cone is connected to its own nerve end
–Responsible for color vision
Mesopic vision
Primary Colors:
Defined CIE in 1931
Red = 700 nm
Green = 546.1 nm
Fig 1.4 Sensivity Curve Blue = 435.8nm
Primary and Secondary Colors
Additive primary colors: RGB use
in the case of light sources such as
color monitors
Hue Chromaticity
Saturation
Amount of red (X), green (Y) and blue (Z) to form any particular color is called tristimulus.
Perceptual Attributes of Color
Value of Brightness i.e. perceived luminance.
Chrominance
• Hue
o specify color tone (redness, greenness, etc.)
o depend on peak wavelength
• Saturation
o describe how pure the color is
o depend on the spread (bandwidth) of light spectrum
o reflect how much white light is added
RGB Color Model
Purpose of color models: to facilitate
the specification of colors in some
standard.
Hidden faces
of the cube
Safe RGB Colors
Safe RGB colors: a subset of
RGB colors.
There are 216 colors common in
most operating systems.
Trichromatic coefficients:
x
Fig 1.9 Chromaticity Diagram Points on the boundary are fully saturated colors.
C= Cyan
CMY and CMYK Color Models M = Magenta Y = Yellow
K = Black
•Primary colors for pigment
–Defined as one that subtracts/absorbs a primary color
of light & reflects the other two
•CMY – Cyan, Magenta, Yellow
–Complementary to RGB
–Proper mix of them produces black
HSI Color Model
RGB, CMY models are not good for human interpreting
HSI Color model:
Hue: Dominant color
Color
carrying
Saturation: Relative purity (inversely proportional to amount of information
white light added)
Intensity: Brightness
Hue and Saturation on Color Planes
RGB
HUE
IMAGE
SATURATION INTENSITY
C1 = Color No. 1
C2 = Color No. 2
Psuedocolor rendition
of Jupiter’s moon Io
A close-up
Basics of Full Color Image Processing
Methods:
1. Per-color-component processing: process each component separately.
2. Vector processing: treat each pixel as a vector to be processed.
Example of per-color-component processing: smoothing an image by smoothing each
RGB component separately (shown below)
Example: Full Color Image and Various Color Space
Components
Color image
CMYK components
RGB components
HSI components
Color Transformation
Used to transform colors to colors.
Formula:
i=1,2,…,n
Color complement replaces each color with its opposite color in the color circle of
the Hue component. This operation is analogous to image negative in a gray scale
image.
Color Transformation Example
Color Slicing Transformation
We can perform “slicing” in color space: if the color of each pixel is far from a
desired color more than threshold distance, we set that color to some specific color
such as gray, otherwise we keep the original color unchanged.
Color Slicing Transformation Example
Original image
Tonal Correction Examples
Color Balancing Correction Examples
Histogram Equalization of a Full Color Image
The HSI model is suitable for histogram equalization where only Intensity (I)
component is equalized.
where r and s are intensity components of input and output color image.
Histogram Equalization of a Full Color Image
Color Image Smoothing
Let Sxy denote the set of coordinates defining a neighborhood centered at (x, y) in an RGB
color image. The average of the RGB component vectors in this neighborhood is
Thus, we conclude that smoothing by neighborhood averaging can be carried out on a per-
color-plane basis.
Fig 6.39(a) through (c) show the HSI components of the image. Fig 6.40(a) shows smoothed, full-color RGB image.
Color Image Sharpening
From vector analysis, we know that the Laplacian of a vector is defined as a vector whose
components are equal to the Laplacian of the individual scalar components of the input
vector. In the RGB color system, the Laplacian of vector c in Eq.(6.4-2) is
which tells us that we can compute the Laplacian of a full-color image by computing the
Laplacian of each component image separately.
Figure 6.41(b) shows a similarly sharpened image based on the HSI components in Fig.6.39. This result was
generated by combining the Laplacian of the intensity component with the unchanged hue and saturation
components.
There are 2 methods for color segmentation:
1. Segmented in HSI color space:
A thresholding function based on color information in H and S Components. We
rarely use I component for color image segmentation.
If we want to segment a image based on color we naturally think first of the HSI color
space because color is conveniently represented in hue image.
(a),(b),(c)
Fig: HSI components of noisy color image in fig . (a)Hue, (b) Saturation , (c) Intensity
Color Image Compression