Color Image Processing
Color Image Processing
Eg. RGB, HSI, YUV, HSV, CMY, CMYK, YCbCr, CIE L*a*b* ,
CIE L*u*v* etc.
Color Perception
3 types of cones: L (64%), M (32%), S (2%)
Retinal Physiology and Color
Human retinas have (at least) four types of
photoreceptors
Three types of ‘cones’
High light level, high acuity vision
Red-Green Blue-Yellow
opponency opponency
Primary and Secondary colors
Additive Color System: By
adding the primary colors of
light
Subtractive Color System: By
subtracting a primary color of
light, absorbing the primary
color and reflecting the other
two – eg. printing industry
Eg. Yellow – absorbs blue and
transmits Red & Green
Color Specification
Color can be specified using the tri-stimulus values R, G,
and B.
Intensity
line
saturation
RGB - HSI model
HSI model
RGB to HSI conversion
if B G
H
360 if B G
with
1
( R G ) ( R B)
cos 1 2
1
( R G ) 2 ( R B )(G B ) 2
3
S 1 [min( R, G , B )]
( R G B)
1
I ( R G B)
3
HUE BRIGHTNESS SATURATION
R
G
B
M
Y
C
CIE L*a*b* Color Space
Color 1
Color 2
Image plane
Alternative representation of intensity slicing
More slicing plane, more colors
Application 1
Rainfall statistics –
in tropical regions of
earth
Washington D.C. – Potomac River
R G
Near
Infrared
(sensitive
B to biomass)
R+G+B near-infrared+G+B
Full Color Processing
Two approaches
Each component processed separately –
Per-Color-Component Processing.
f(x,y) = I(x,y)
Example: spatial mask
How to deal with color vector?
Per-color-component processing
Process each color component
Vector-based processing
Process the color vector of each pixel
False
Colours !!
Marginal
Median
Vectorial
Median
Full Color Processing
Color Transformations
Intensity modification
Color complements
Color Slicing
Histogram processing
Color image smoothing and sharpening
Noise removal
Color image Compression
Color image segmentation
Color transformation
Color transformation
si Ti (r1 , r2 ,..., rn ) , i 1,2,..., n
Use which color model in color
transformation?
RGB CMY(K) HSI
I H,S
Color complement
1-D intensity
Color slicing
How to take a region of colors of interest?
prototype color
prototype color
Application
cube sphere
Color Slicing
0.5 if [ r j a j W 1 j n
si 2
ri otherwise
if rj a j R0
n
1 j n
2 2
0.5
si j 1
r
i otherwise
Histogram processing
Color image smoothing
Neighborhood processing
Color image smoothing: averaging
mask
1
c( x, y )
K
c( x, y )
( x , y )S xy
vector processing
Neighborhood
Centered at (x,y)
1
R ( x, y )
K ( x , y )S xy
1
c( x, y ) G ( x, y ) per-component processing
K ( x , y )S xy
1
K B ( x, y )
( x , y )S xy
Image Smoothing
Image Smoothing
Image sharpening
Image Compression