Professional Documents
Culture Documents
Color Transformations: I R R R T S R R R F (M, N), Whereas S S S
Color Transformations: I R R R T S R R R F (M, N), Whereas S S S
Color Transformations: I R R R T S R R R F (M, N), Whereas S S S
si = Ti (r1, r2 , r3 ), i = 1,2,3.
• Here (r1, r2 , r3 ) represent the color components of the input image
f(m,n), whereas ( s1, s2 , s3 ) represent the color components of the
output image g(m,n).
g (m, n) = kf (m, n)
s1 = r1 , s2 = r2 , and s3 = kr3
• Although the fewest operations are involved in the HSI space, the
computations involved in conversion back and forth from RGB space
more than offsets any savings in computation in HSI space.
Color Complement
RGB Image
RGB Image f H (m, n) g (m, n)
f (m, n) RGB-to-HSV HSV-to-RGB
(rgb2hsv); f S (m, n) (hsv2rgb);
Histogram Eq.
(histeq);
f V (m, n)
Original
Image
Histogram
Equalized
Example: Histogram equalization
Smoothing of Color Images
• Just like the case of grayscale images, smoothing of color images can
be performed to remove abrupt transitions of gray values.
• This can be done either in the RGB domain or the HSI domain.
• In the RGB domain, all the three color components are individually
transformed by an appropriate smoothing mask, say a 3× 3 mask:
1 1 1
1
1 1 1
9
1 1 1
0 1 0
1 1 1
1 − 4 1 or 1 − 8 1
0 1 0 1 1 1
Example
Noise in color images
• Usually, across the three color channels, the noise is independent and
its statistical characteristic are identical.
• However, more complicated filters like the median filter are not as
straight-forward to formulate in the color domain and will not be
pursued here.
• We will also skip the short discussion in text about color image
segmentation and compression (Section 6.7 and 6.9).