You are on page 1of 24

Color image

processing
Lect 33
Pseudocolor Image Processing

0 The process of assigning


colors to gray values
based on a specified
criterion.

0 Intensity Slicing

f ( x, y )  ck if f ( x, y )  Vk
03/29/2022 2
03/29/2022 3
03/29/2022 4
03/29/2022 5
03/29/2022 6
Pseudocolor Image Processing
0 Intensity to Color Transformation

03/29/2022 7
Example- Pseudocolor image
processing
Basics of Full-Color Image Processing
Let c represent an arbitrary vector in RGB color space:
 cR   R 
c  cG   G 
 cB   B 
At coordinates (x, y ),
 cR ( x, y )   R ( x, y ) 
c( x, y )   cG ( x, y )   G ( x, y ) 
 cB ( x, y )   B ( x, y ) 

03/29/2022 9
Basics of Full-Color Image Processing

g ( x, y )  T  f ( x , y ) 
03/29/2022 si  Ti (r1 , r2 ,..., rn ), i  1, 2,..., n. 10
03/29/2022 11
g ( x, y )  kf ( x, y )

s3  kr3

si  kri  (1  k ),
i  1, 2,3.

si  kri ,
03/29/2022 i  1, 2,3. 12
03/29/2022 13
03/29/2022 14
Color slicing
0 Highlighting a specific range of colors in an image
If the colors of interest are enclosed by a cube of width W
and centered at a protypical color with components
(a1 , a2 ,..., an ), the necessary set of transformations is
0.5 if | rj  a j | W / 2 
si   any 1 j  n

 ri otherwise
If a sphere is used to specify the colors of interest,
R 0 is the radius of the enclosing of its center.
The transformations is
n

 r 
2 2
 0.5 if j  a j  R0
si   j 1
r otherwise
i
03/29/2022 15
Color slicing

03/29/2022 16
Tone and
Color
Corrections

03/29/2022 17
03/29/2022 18
Color Image Smoothing
Let S xy denote the set of coordinates defining a neighborhood
centered at (x, y ) in an RGB color image. The average of the
RGB component vectors in this neighborhood is
1 
  R ( s, t ) 
 K ( s ,t )S xy 
1 1 
c ( x, y )  
K ( s ,t )Sxy
c ( s, t )   
 K ( s ,t )S xy
G ( s, t ) 

 
1 B ( s, t ) 

 K ( s ,t )S xy 
 
03/29/2022 19
03/29/2022 20
03/29/2022 21
For HSI model, only intensity is averaged. This does not change the color
and so there is difference in the smoothened image.

This difference increases when the size of the filter is increased.

03/29/2022 22
Color Image Sharpening

The Laplacian of vector c is

2
  R ( x, y ) 
 2 
  c ( x, y )     G ( x, y ) 
2

  2 B ( x, y ) 
 

03/29/2022 23
03/29/2022 24

You might also like