Академический Документы
Профессиональный Документы
Культура Документы
CSC331
Color Image Processing
Todays lecture
Color Fundamentals
The human visual system can distinguish hundreds
of thousands of different color shades and
intensities, but only around 100 shades of grey.
Therefore, in an image, a great deal of extra
information may be contained in the color, and this
extra information can then be used to simplify image
analysis, e.g. object identification and extraction
based on color.
When color is available, it gives much more
information about an image than intensity alone.
Color is very useful for recognition of objects in an
image both for humans and computers.
10
Color Spectrum
white light with a prism (1666, Newton)
11
Physical
Background
Visible light: a narrow band of
electromagnetic radiation
380nm (blue) 780nm
(red)
Wavelength: Each physically
distinct colour corresponds to
at least one wavelength in this
band.
Pure Colours: Pure or
monochromatic colours do not
exist in nature.
Lighting conditions
The lighting conditions of the scene
have a large effect on the colours
recorded.
Quality of light
Radiance
Radiance is the total amount of energy which comes
out of a light source and is measured in the form of in
units of watts (symbol:W)
Luminance
luminance, it is the amount of energy that is
perceived by an observer.
Luminance measured in units of lumens(symbol:lm)
Brightness.
it is actually a subjective measure and it is practically
not possible to measure the amount of brightness.
18
Primary colors
Color is sensed by the eye using three kinds of cones
cells, each sensitive primarily to red, green or blue,
though there is significant overlap.
We refer to red, green and blue as the primary colors,
and denote to set as RGB.
International Commission
on Illumination(CIE)
red = 740 nm
green = 646.1nm
blue = 555.8nm
Color Fundamentals
Secondary colors:
magenta (red +
blue), cyan (green +
blue), and yellow
(red + green)
Hue
It represents the dominant wavelength in a mixture of colors. So, when
you look at a secondary color which is a mixture of different primary
colors, there will be one wavelength which is a dominant one, dominant
wavelength and the overall sensation of that particular secondary color
will be determined by the dominant wavelength.
Wavelength of the pure colour observed in the signal.
Distinguishes red, yellow, green, etc.
More the 400 hues can be seen by the human eye.
Brightness
Brightness achromatic notion of intensity.
Amount of light emitted.
Distinguishes the greylevels.
The human eye perceives about 100 levels
23
24
Chromaticity Diagram
The amounts of red, green, and blue needed to form
any particular color are called tristimulus values (X, Y
and Z). These represent three dimensional
coordinates of any perceived color.
The tristimulus values can be normalized to give
chromatic coefficients, x (red), y (green) and z (blue).
X
x
X Y Z
Y
y
X Y Z
Z
X Y Z
x y z 1
Note that because of normalization
International Commission
on Illumination(CIE) chromaticity
diagram
Chromaticity Diagram
1.
Chromaticity
Chromaticity
Diagram
Diagram
Color mixing
Chromaticity
Chromaticity
Diagram
Diagram
Color Gamut
produced by RGB
monitors
Color Gamut
produced by high
quality color
printing device
Color model
RGB model:
image displays like monitor
33
34
35
Color
Color Models
Models --- RGB
RGB
Model
Model
For most
graphics
images used
for Internet
applications, a
set of 216
colors has
been selected
to represent
safe colors
which should
be reliably
displayed on
computer
monitors.
37
38
Color
Color Models
Models --- CMY
CMY and
and CMYK
CMYK
Models
Models
C 1 R
M 1 G
Y 1 B
For CMYK black color is add
Color
Color Models
Models --- HSI
HSI
Model
Model
Color
Color Models
Models --- HSI
HSI
Model
Model
Color
Color Models
Models --- HSI
HSI
Model
Model
3
min( R, G, B)
S 1
( R G B)
1
I ( R G B)
3
cos
1
1
2
( R G ) ( R B)
1
2
( R G ) ( R B )(G B )
2
Color
Color Models
Models --- HSI
HSI
Model
Model
0 o H 120 o)
B I (1 S )
S cos H
R I 1
o
cos(60 H )
G 3I ( R B )
GB sector (
120 o H 240 o )
S cosH 120
G I 1
, R I 1 S, B I R G
cos 180 H
BR sector (
240o H 360 o
S cosH 240
B I 1
, G I 1 S, R I G B
cos300 H
HSI property
48
Color
Color Models
Models --- HSI
HSI Model
Model
50
Pseudocolor
Pseudocolor Image
Image Processing
Processing
Intensity
Intensity Slicing
Slicing
Pseudocolor
Pseudocolor Image
Image Processing
Processing
Intensity
Intensity Slicing
Slicing
53
54
Examples
55
56
57
59
CMYK
RGB
HSI
H.R. Pourreza
Color
Color Transformations
Transformations
Example
Example
Color
Color Complement
Complement Transformations
Transformations
Color
Color Complement
Complement Transformations
Transformations
63
Color
Color Complement
Complement Transformations
Transformations
Example
Example
65
color slicing
Cube of width W
66
Color
Color Slicing
Slicing
Example
Example
Cube
Spher
e
Tone correction
A color images, we need to define
the tone. So, a color image may have
a flat tone, it may have a light tone
or it may have a dark tone
These tones are determined by the
distribution of the intensity values of
different RGB components within the
image.
68
Tone correction
69
Tone
Tone and
and Color
Color Corrections
Corrections
Tone
Tone Corrections
Corrections
Tone
Tone and
and Color
Color Corrections
Corrections
Tone
Tone Corrections
Corrections
Tone
Tone and
and Color
Color Corrections
Corrections
Tone
Tone Corrections
Corrections
73
74
75
76
77
78
79
Sharpening
80