Statistical Operations: - Gray-Level Transformation - Histogram Equalization - Multi-Image Operations
Statistical Operations: - Gray-Level Transformation - Histogram Equalization - Multi-Image Operations
• Gray-level transformation
• Histogram equalization
• Multi-image operations
Histogram
10
9
1 2 3 2 3 2 8
0 0 1 2 1 4 7
4 4 2 1 2 1 6
1 2 1 2 1 2 5
5 4 2 1 4 0
4
3
2
1
0 0 1 2 3 4 5
0.5
0
0 0.5 1
Histogram Histogram
0.5
0
0 0.5 1
Histogram Histogram
0.5
0
0 0.5 1
Histogram Histogram
0.5
0
0 0.5 1
Histogram Histogram
• Use:
– To remove the gray level trends in an image
– To make gray level more discrete
– To segment or split an image into distinct parts
• Operation:
– setting all gray levels below a certain level to
“zero”, and above a certain level to a maximum
brightness
0.5
0
0 0.5 1
Histogram Histogram
• Use:
– to reduce the number of different gray level in an
image
– to segment an image
– to remove unwanted gray level degradation
• Operation:
– Close gray levels are combined, thus removing
unwanted variations in data
1 8 4 3 6 2 5 2 8 4 6 2 5 0 9 3 3 6 3 6 3 9 3 6 3 6
0 3 8 3 6 5 4 0 3 8 3 8 7 0 3 9 3 6 6 3 0 3 9 3 9 6
3 8 4 7 6 2 8 3 7 3 7 6 1 3 9 3 6 6 3 9 3 6 3 6 6 0
0 9 8 0 5 4 8 5 9 3 7 2 9 0 9 9 0 6 3 9 6 9 3 6 3 9
0 **** 0 ******
1 ** 1
2 ***** 2
3 ********* 3 *******************
4 ***** 4
5 ***** 5
6 ***** 6 ***************
7 ***** 7
8 ********* 8
9 *** 9 ************
240-373 Image Processing 17
Bunching Code
• Use:
– to increase the different two groups of gray levels
so that the contrast between segments compose
of one group of the other is enhanced
• Operation:
– rounding the gray levels up if they are in the
range and down if they are in another
• Use:
– to find the best gray level for splitting--usually for
thresholding to black and white
• Operation: g
– Let t ( g ) f (i )
i 0
g . f (i )
m( g ) i 0
t( g )
t( g ) 2
T max m( g ) m(G 1) 1
P t( g )
A Processing
240-373 Image B 22
Example
Histogram f(g) t(g) g.f(g) g.f(g) m(g) A B A*B