Digital Image Analysis and Processing CPE 0907544 CPE 0907544
Color Image Processing
Chapter 6 Sections : 6 1 – 6 6
D I d J f
Sections : 6.1 – 6.6
- Dr. Iyad Jafar
Digital Image Analysis and Processing CPE 0907544 CPE 0907544 - - PowerPoint PPT Presentation
Digital Image Analysis and Processing CPE 0907544 CPE 0907544 Color Image Processing Chapter 6 Sections : 6 1 6 6 Sections : 6.1 6.6 D I Dr. Iyad Jafar d J f Outline Introduction Color Fundamentals Color Models
2
The image is acquired using full –color sensor (TV camera, color
Assign colors to monochromatic intensity image
3
Smooth
Smooth transition between colors
4
Can be divided based on their sensitivity/absorption of light into
Based on this experimental classification of the cones, these
5
There is no single frequency that describe these primary
Standard values set by
700 nm for Red 546 1 nm for Green 546.1 nm for Green 435.8 nm for Blue Primary does not mean we can generate all colors by mixing
6
Primary colors (R,G,B) can be added to produce secondary
Mixing the three primaries in the right intensities produce white Mixing the three primaries, in the right intensities, produce white
Secondary colors (RGB) can be added to produce primary colors;
Mixing the three secondary colors, in the right intensities,
7
8
X Y Z x y z X Y Z X Y Z X Y Z
1 x y z
9
Very useful in color mixing It shows the color composition
T
Colors on the boundary are Colors on the boundary are
Any point not on the boundary
The
10
Color Gamut used by RGB monitors
A line connecting two points in
Three points in the diagram
Color Gamut
11
Color Gamut used by color printers
12
13
14
15
Valid colors are on the surface only
16
y
17
18
19
The Hue Component
1 2 1 2
⎧
θ is measured with respect to the red axis
2
The Saturation Component
The Intensity Component
S cos H ⎡ ⎤
RG sector (0o≤H<120o)
1 60 1 3
R I cos( H ) B ( S ) I G I ( R B ) ⎡ ⎤
⎥
⎦
(120 H 240 )
( ) 120 1 1
H , R ( S ) I S cos H G = I
⎤
⎥
(120o≤H<240o)
240 1
H G ( S ) I
1 60 3
I cos( H ) B I ( R G )
⎥
⎦
(240o≤H ≤ 360o)
240 1 1 60
H , G ( S ) I S cos H B = I cos( H )
⎤
⎥
⎦
21
3 R I ( B G )
Hue Saturation Intensity
22
Hue Saturation Intensity Pure colors
Color Image Red Channel Green Channel Blue Channel Red Channel Green Channel Blue Channel Hue Channel Saturation Channel Intensity Channel
23
Once the components are decoupled, we can operate on one or
Hue in the blue and green regions is set to g g zero I t it f th Original Image Intensity of the white region multiplied by 0.5 24 Saturation of cyan region is multiplied by 0.5
25
26
Example 6.1 – arbitrary intensity slicing using 8 colors
Intensity Slicing Using Slicing Using Eight Colors
Example – intensity slicing based on some physical meaning
Cracks in a weld a weld Intensity with T wo colors 27
28
Explosive 29
Operating on each color channel separately then compose the color
Operating on color pixels directly
We can model color transformation as
In general, color transformations are of the form
1 2 3 i i n
Each transformation function Ti operates on different channel ri
The result is combined into a single image
30
In HSI, multiply the intensity component by k only In RGB, use si = k*ri, i = 1,2,3 In CMY, use si = k*ri +(1-k), i = 1,2,3
Which one to use ?
31
Analogous to gray-scale negatives Useful in enhancing small dark details embedded in bright
Use the Hue color circle Use the Hue color circle
32
2 2
n i i
1 j i i
33
Prototypical color = (0.6863,0.1608,0.1922) Radius = 0.1765
34
35
Techniques developed for graylevels can be applied to color images
It is unwise to apply histogram equalization to the color channels
Instead, operate on the color intensities and leave their hues
36
Equalization of the intensity channel only Equalization of the intensity channel followed by increasing the saturation values
37 Original Result of Smoothing R, G, and B channels Separately Result of Smoothing I in the HSI Image
Original Result of Sharpening R, G, and B channels Separately Result of Sharpening I in the HSI Image 38
39