Histogram
Histogram
Histogram
com
Module 6
Histogram
Histogram
p(rk) versus rk
© 2002 R. C. Gonzalez & R. E. Woods
Digital Image Processing, 2nd ed. www.imageprocessingbook.com
Histogram Processing
Histogram Processing
Histogram Equalization
• Histogram equalization:
• enhancement technique which produces an output (enhanced)
image that has a near uniformly distributed histogram.
– To improve the contrast of an image
– To transform an image in such a way that the transformed image has a
nearly uniform distribution of pixel values
Histogram Equalization
• In discrete version:
– The probability of occurrence of gray level rk in an image is
n
pr ( r ) k k 0,1,2,..., L 1
MN
MN : the total number of pixels in the image
nk : the number of pixels that have gray level rk
L : the total number of possible gray levels in the image
Histogram Equalization
Histogram Equalization