Colour Image Processing
Colour Image Processing
Unit-5
Colour Image Processing
INTRODUCTION
Color image processing is motivated by two
principal factors:
1. color is powerfull descriptor for object
identification and extraction in a scene.
2. Basically human eye can discern thousands
of color shades and intensities. So, color plays
important role In manual image analysis
INTRODUCTION
Color image processing classified into
two categories:
Full color processing
It acquires all the colors in an image for
processing
INTRODUCTION
Today well look at color image
processing:
Color fundamentals
Color models
Color Fundamentals
In 1666, Sir Isaac Newton discovered that when a
beam of sunlight passes through a glass prism, the
emerging beam is split into a spectrum of colors
Color Fundamentals
Characterization of light :
2.
Chromatic light
Greyscale
Color
1. Achromatic light
f (x, y) {0,1,, N}
Lighting conditions
The lighting conditions of the scene have
a large effect on the colours recorded.
10
be calibrated.
For multimedia applications, this is more difficult
to organise:
Algorithms exist for estimating the illumination
colour.
11
Color Fundamentals
The colors that humans and most animals
perceive in an object are determined by the
nature of the light reflected from the object
For example, green
objects reflect light
with wave lengths
primarily in the range
Whi
te L
ight
of 500 570 nm while
Colours
Absorbed
absorbing most of the
energy at other
Light
Green
wavelengths
12
Color Fundamentals
Chromatic light spans the electromagnetic
spectrum from approximately 400 to 700 nm
As we mentioned before human color vision is
achieved through 6 to 7 million cones in each
eye
13
Physical
Background
Visible light: a narrow band
of electromagnetic radiation
Color Fundamentals
1. Approximately 65% of these cones are
sensitive to red light, 33% to green light and
2% to blue light
2. Absorption curves for the different cones have
been determined experimentally
3. Strangely these do not match the CIE
( Commission Internationale de 1Eclairage-the
International commission on illumination )
standards for red (700nm), green (546.1nm)
and blue (435.8nm) light as the standards were
developed before the
experiments!
15
Color Fundamentals
(cont)
16
Color Fundamentals
3-basic qualities are used to describe
the quality of a chromatic light source:
Radiance: the total amount of energy
that flows from the light source
(measured in watts)
Luminance: the amount of energy an
observer perceives from the light source
(measured in lumens)
Note we can have high radiance, but low
luminance
Color Fundamentals
Due to absorption characteristics of human eye
the colors Red, Green, Blue are called primary
colors of light.
Adding of primary colors produces secondary
colors of light . Those are
Magenta (R+B).
Cyan
(G+B).
Yellow
(R+G).
Secondary colors of light is also called as primary
colors of pigments or colorants
Adding of all primary colors of light or secondary
colors with opposite primary color produce white
(R+B+G) = (M+G) = (C+R) = (Y+B) = WHITE
18
Color Fundamentals
(cont)
Adding of all primary colors of light or
secondary colors with opposite primary color
produce white
(R+B+G) = (M+G) = (C+R) = (Y+B) = WHITE
Secondary colors of pigments are primary
colors of light i.e., R,G,B.
R=(Y+M)
;
G=(Y+C) ;
B=(M+C)
Adding of all primary colors of pigments or
secondary color with opposite primary
produce black.
(M+C+Y) = (R+C) = (G+M) = (B+Y) = BLACK
19
Color Fundamentals
Color Fundamentals
(cont)
Characteristics used to distinguish one color
from another color
Brightness: Embodies the intensity of light
Hue: Represents dominant color in a mixer of light
waves
Saturation: represents amount of white light mixed
with Hue
Saturation is inversely proportional to white light
added
Saturation is zero when the energy of primary colors
of light is equal.
Color Models
From the previous discussion it should be
obvious that there are different ways to
model color
We will consider two very popular models
used in color image processing:
RGB
(Red Green Blue)
CMY OR CMYK (Cyan Magenta Yellow)
HIS
(Hue Saturation
Intensity)
RGB
In the RGB model each colour appears in its primary
spectral components of red, green and blue
The model is based on a Cartesian coordinate system
RGB values are at 3 corners
Cyan magenta and yellow are at three other
corners
Black is at the origin
White is the corner furthest from the origin
Different colours are points on or inside the cube
represented by RGB vectors
RGB (cont)
RGB (cont)
Images represented in the RGB color model
consist of three component images one for
each primary color
When fed into a monitor these images are
combined to create a composite color image
The number of bits used to represent each
pixel is referred
to as the color depth
3
8
A 24-bit image
2 is often referred to as a fullcolor image as it allows
= 16,777,216
colors
RGB (cont)
2 R G R B
1
cos
1
R G2 R BG B 2
3
S 1
minR,G,B
R G B
I 13 R G B
S cosH
R I 1
cos60 H
G 3I R B
B I1 S
R I1 S G I 1 S cosH 120
B 3I R G
cosH 60
R 3I G B
G I1 S
H 240
S cos
B I 1
cosH 180
HSI
Image
Manipulations
RGB
Image
Saturation
Hue
Intensity
Intensity
Saturation
RGB
Image
Pseudocolor Image
Processing
Pseudo color (also called false
color) image processing consists
of assigning colors to grey values
based on a specific criterion
The principle use of pseudo
color image processing is for
human visualization
Humans can discern
between thousands of color
shades and intensities,
compared to only about two
dozen or so shades of grey
Pseudocolor Image
Processing
Pseudocolor Image
Processing
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Pseudocolor Image
Processing
Figures a)Gray scale image corresponds to
average monthly rainfall (horizantal band)
b) color assigned to intensity values
c) color code d) Zone of america