Professional Documents
Culture Documents
Digital ImageProcessing-color Image Processing
Digital ImageProcessing-color Image Processing
Established in 1998
Session: 2020-21
• Mixing the three primaries, or a secondary with its opposite primary color,
produces white light.
Tri-chromatic coefficient:
X Y Z
x y z
X Y Z X Y Z X Y Z
x y z 1
Chromaticity Diagram
Green Point =
62% green,
25% red,
13% blue.
Color Gamut
produced by RGB
monitors
Color Gamut
produced by high
quality color printing
device
C 1 R
M 1 G
Y 1 B
where, all color values have been normalized to the range [0, 1].
if B G
H
360 if B G
1
[( R G ) ( R B )]
1 2
cos 1/ 2
[( R G ) 2
( R B )( G B )]
3
S 1 [min( R, G, B )]
( R G B)
1
I ( R G B)
3
Digital Image Processing
The HSI Color Models
B I (1 S )
S cos H
R I 1
cos( 60
H )
G 3I ( R B )
H H 120
R I (1 S )
S cos H
G I 1
cos( 60
H )
B 3I ( R G )
H H 240
G I (1 S )
S cos H
B I 1
cos( 60
H )
R 3I (G B )
S I I RGB
cR R
c cG G
cB B
For an image of size M*N,
c R ( x, y ) R ( x, y )
c( x, y ) cG ( x, y ) G ( x, y )
cB ( x, y ) B ( x, y )
g ( x, y ) T f ( x, y )
si Ti r1 , r2 , , rn , i 1,2,..., n
CMYK
si kri i 1,2,3 s1 r1
g ( x, y ) kf ( x, y )
si kri (1 k ) i 1,2,3
s2 r2
Digital Image Processing s3 kr3
Full-Color Image Processing
Color Transformation: Color Complement
Basic Idea:
Display the color of interest so that they stand out
from background
Use the region defined by the colors as a mask for
further processing
W
0.5 if rj a j
si 2 any1 j n , i 1,2,..., n
r otherwise
i
Digital Image Processing
Full-Color Image Processing
Color Transformation: Color Slicing
n
0.5 if (rj a j ) R0
2 2
si j 1
, i 1,2,..., n
ri otherwise
Cube Sphere
Magenta
Histogram
Equalizing the Saturation
Intensity Adjustment
Averaging:
1
c ( x, y )
K
c( x , y )
( x , y )S xy
1
R ( x, y )
K ( x , y )S xy
1
c ( x, y ) G ( x, y )
K ( x , y )S xy
1
K B ( x, y )
( x , y )S xy
Digital Image Processing
Full-Color Image Processing
Color Image Smoothing
Red
Green Blue
2 R ( x, y )
2
c( x, y ) G ( x, y )
2
2 B ( x, y )
( z a ) ( z a
1/ 2
G ) ( z B aB )
2 2 2
R R G
1 2 g xy
tan
1
2 g xx g yy
1/ 2
F ( ) g xx g yy g xx g yy cos 2 2 g xy sin 2
1
2