Histogram Equalization
Dept. of CSE, FEC
Image Histogram
● An image histogram is a gray-scale value distribution showing the frequency
of occurrence of each gray-level value.
○ For an image size of 1024 × 1024 × 8 bits, the abscissa ranges from 0 to 255; the total
number of pixels is equal to 1024 × 1024.
Histogram Equalization
● Histogram equalization is a method in image processing of contrast
adjustment using the image's histogram.
● This makes the image brighter and easier to see, especially in low-contrast or
poorly lit situations.
● It essentially stretches the intensity range of an image, making details that
were previously hidden more visible.
HistEq Process
Input image
Histogram of input image
Histogram Equalization
● The general histogram equalization formula is:
● Where,
○ cdfmin is the minimum non-zero value of the cumulative distribution function
○ M × N gives the image's number of pixels
○ L is the number of grey levels used
Equalization
Output Image VS Original
Example on a full image