Professional Documents
Culture Documents
Consider the image given , plot the histogram based on frequency of grey
levels.
Histogram based on frequency
PIXELS FREQUENCY
0 0
1 12
2 26
3 5
4 7
5 12
6 12
7 6
Total =80
Histogram plot
Histogram based on probability of
occurrence
• If the present image is a digital image of size
NxN with grey levels in the range [0, L-1],
p(rk) = nk/N
Where
rk - kth grey level , k= 0,1,2…L-1
nk – number of pixels with grey level rk
N-total number of pixels in the image
pixel Probability
0 0/80=0
1 12/80 =0.15
2 26/80=0.325
3 5/80=0.0625
4 7/80=0.0875
5 12/80=0.15
6 12/80=0.15
7 6/80=0.075
Histogram plot
Example
• Plot the histogram based on (a) frequency of
grey levels (b) probability of occurance
4 4 5 5
6 6 7 1
5 2 3 1
4 5 2 3
Module 2: Multiple Views and Image Enhancement
Practice Question 2.2
Suppose that a 3-bit image of size 64 × 64 pixels has the intensity
distribution shown in Figure 15. Enhance the image using histogram
equalization technique. Comment on the histogram of the output image.
Figure 15: Intensity distribution and histogram values for a 64 × 64 digital image.