2. Digital Image Processing
2
Color Image Processing - 1
Color and electromagnetic spectrum
Primary colors
Chromaticity diagram
Color models
RGB model
CMY model
HSI model
Outline
3. Digital Image Processing
Color Image Processing
Motivation
Color powerful descriptor- object identification
and extraction in image analysis
Human discern thousands of colors shades and
intensities.
3
4. Digital Image Processing
Color Image processing is divided into two majoe areas
Full Color Image Processing- Publishing ,
visualization, internet.
Pseudo color image processing
4
5. Digital Image Processing
5
Color Image Processing - 1
When passing through a prism, a beam of sunlight is
decomposed into a spectrum of colors : violet, blue, green,
yellow, orange, red
Color spectrum
6. Digital Image Processing
6
Color Image Processing - 1
Ultraviolet – visible light – infrared
The longer the wavelength (meter), the lower the
frequency (Hz), the lower the energy (electron volts)
Electromagnetic spectrum
7. Digital Image Processing
Color Fundamentals
Achromatic Light- attribute is intensity.
Chromatic light- 400nm- 700nm - Three attributes
Radiance
Luminance
Brightness
7
8. Digital Image Processing
8
Color Image Processing - 1
LANDSAT
The first Landsat satellite was launched in 1972
Landsat 7 was launched on April 15, 1999
Landsat 7 sensors: Enhanced Thematic Mapper Plus (ETM+)
Landsat 7 Home page : http://landsat7.usgs.gov/index.php
NASA Landsat 7 Home page : http://landsat.gsfc.nasa.gov/
Multispectral imaging
9. Digital Image Processing
9
Color Image Processing - 1
Multispectral imaging - example
Southern California Fires
Acquired on: Oct 26, 2003
Wildfires rage through the San Bernadino and
San Diego counties in southern California,
with as many as eight separate fires burning
in the heavily populated area.
10. Digital Image Processing
10
Color Image Processing - 1
AVIRIS (Airborne Visible-Infrared Imaging Spectrometer)
Number of bands : 224
Wavelength range (um) : 0.4-2.5
Image size : 512 x 614
Home page : http://makalu.jpl.nasa.gov/html/overview.html
Spectrum range
Visible light : 0.4 – 0.77 um
Near infrared : 0.77 – 1.5 um
Medium infrared : 1.6 – 6 um
Far infrared : 8 – 40 um
Hyperspectral imaging
11. Digital Image Processing
11
Color Image Processing - 1
What does it mean when we say an object is in certain
color?
Why the primary colors of human vision are red, green,
and blue?
Is it true that different portions of red, green, and blue can
produce all the visible color?
What kind of color model is the most suitable one to
describe the human vision?
Questions
12. Digital Image Processing
12
Color Image Processing - 1
Illuminating and reflecting light
Light source
Emit energy in a range of wavelength
Its intensity may vary in both space and time
Illuminating sources
Emit light (e.g. the sun, light bulb, TV monitors)
Perceived color depends on the emitted freq.
Follows additive rule: R+G+B = White
Reflecting sources
Reflect an incident light (e.g. the color dye, matte surface, cloth)
Perceived color depends on reflected freq (=incident freq – absorbed freq.)
Follows subtractive rule: R+G+B = Black
13. Digital Image Processing
13
Color Image Processing - 1
Human perception of color
Retina contains photo receptors
Rods: night vision, perceive brightness only
Cones : day vision, can perceive color tone
Cones are divided into three sensible categories
65 % percent of cones are sensible to red light
33 % percent of cones are sensible to green light
2% percent of cones are sensible to blue light
Different cones have different frequency responses
Tri-receptor theory of color vision: the perceived color depends only
on three numbers, Cr, Cg, Cb, rather than the complete light spectrum.
14. Digital Image Processing
14
Color Image Processing - 1
Human perception of color (cont’)
d
a
C
Y
b
g
r
i
d
a
C
C
Y
i
i
)
(
)
(
,
,
,
)
(
)
(
15. Digital Image Processing
15
Color Image Processing - 1
For this reason, red, green, and blue are referred to as the
primary colors of human vision. CIE (the international
Commission on Illumination) standard designated three
specific wavelength to these three colors in 1931.
Red : 700 nm
Green : 546.1 nm
Blue : 435.8 nm
Primary colors of human vision
16. Digital Image Processing
16
Color Image Processing - 1
No single color may be called red, green, or blue.
R, G, B are only specified by standard.
The primary colors can not produce all the visible colors.
Some clarification
17. Digital Image Processing
17
Color Image Processing - 1
Magenta (R+B)
Cyan (G+B)
Yellow (R+G)
Secondary colors
Color TV reception-additive nature of light
colors
18. Digital Image Processing
18
Color Image Processing - 1
The characteristics used to distinguish one color from
another are:
Brightness : achromatic notion of intensity
Hue : dominant color (dominant wavelength in a mixture
of light waves) perceived by an observer
Saturation : relative purity or the amount of white mixed
with a hue
Color characterization
19. Digital Image Processing
19
Color Image Processing - 1
So when we call an object red, orange, etc., we refer to its
hue.
Some clarification
20. Digital Image Processing
20
Color Image Processing - 1
Chromaticity = hue +
saturation
Tristimulus : the amount
of R, G, and B needed to
form any color (R, G, B)
Trichromatic coefficients :
x, y, z
Chromaticity
1
z
y
x
Z
Y
X
Z
z
Z
Y
X
Y
y
Z
Y
X
X
x
21. Digital Image Processing
21
Color Image Processing - 1
CIE standard (1931)
Shows all the possible colors
Questions
Can different portions of R, G,
and B create all the possible
colors?
Where is the brown in the
diagram?
Chromaticity diagram
22. Digital Image Processing
22
Color Image Processing - 1
A triangle can never cover the
house-shoe shape diagram
Chromaticity diagram only
shows dominant wavelengths
and the saturation, and is
independent of the amount of
luminous energy (brightness)
Answers
23. Digital Image Processing
23
Color Image Processing - 1
RGB model
Color monitor, color video cameras
CMY model
Color printer
HSI model
Color image manipulation
XYZ (CIE standard, Y directly measures the luminance)
YUV (used in PAL color TV)
YIQ (used in NTSC color TV)
YCbCr (used in digital color TV standard BT.601)
Color models
24. Digital Image Processing
24
Color Image Processing - 1
Color monitors, color
video cameras
Pixel depth : number of
bits used to represent each
pixel
RGB model
25. Digital Image Processing
25
Color Image Processing - 1
Color printer and copier
Deposit colored pigment on paper
Relationship with RGB model
CMY model
B
G
R
Y
M
C
1
26. Digital Image Processing
26
Color Image Processing - 1
The intensity component (I) is decoupled from the color
components (H and S), so it is ideal for image processing
algorithm development.
H and S are closely related to the way human visual
system perceives colors.
HIS space is represented by a vertical intensity axis
&locus of color points that lie on planes perpendicular to
this axis.
As plane move up & down the intensity axis, the
boundaries defined by intersection of each plane with the
faces of cube have a triangular or hexagonal shape
HSI model
28. Digital Image Processing
28
Color Image Processing - 1
HSI model (cont’)
The primary colors are separated by 120
degree. Primary & secondary by 60 &
secondaries by 120
29. Digital Image Processing
29
Color Image Processing - 1
Converting from RGB to HSI
Converting from HSI to RGB
Model conversion between RGB and HSI
)
(
3
1
)
,
,
min(
)
(
3
1
)
)(
(
)
(
)
(
)
(
2
1
cos
360
2
1
2
1
B
G
R
I
B
G
R
B
G
R
S
B
G
B
R
G
R
B
R
G
R
G
B
if
G
B
if
H
33. Digital Image Processing
33
Color Image Processing - 2
Assign color to monochrome images
Perform three independent transformations on the gray
level of any input pixel
The three result can then serve as the red, green, and blue
component of a color image
Pseudo-color image processing
39. Digital Image Processing
39
Color Image Processing - 2
Use HSI color model to process the image
Use RGB model to display the image
The correspondence between RGB and HSI
Full-color image processing
40. Digital Image Processing
MTF of Visual system
MTF-Modulation transfer function
It is a graphical response of visual system in spatial
coordinates
MTF can never be negative
It shows the image contrast sensitivity of visual system as
a function of spatial frequency.
The optical transfer function (OTF) of an optical system
such as a camera, microscope, human eye,
or projector specifies how different spatial frequencies are
handled by the system.
40
41. Digital Image Processing
MTF = |OTF|
= |H(f1,f2)/H(0,0)|
MTF can also be defined as ratio of magnitude of Fourier
transform of i/p & o/p images
Different for different viewers & different viewing angles.
Graphical MTF of human system- bandpass filter
MTF(total) = MTF1*MTF2*MTF3……
41