HistogramEqualization Examples
HistogramEqualization Examples
Histogram Equalization
• Histogram equalization is an image
processing technique used to improve
contrast in images.
• It accomplishes this by effectively spreading
out the most frequent intensity values, i.e.
stretching out the intensity range of the
image.
Example (Matlab histeq function)
• If you use Matlab, this histogram plot of pout.tif image
(a) (b)
(c) (d)
Does Histogram Equalization always produces
good results?
Equalization (Mathematically)
• Assume
• 𝐺(𝑥) is equalized image
• 𝑇(𝑥) is the cumulative sum of each gray level
• 𝐿 is the number of gray level 2
• 𝑛 is the number of pixels of the image.
• Then
( )
•𝐺 𝑥 = ∗ 𝐿 − 1 i.e, 𝐺 𝑥 = ∗ 𝑇(𝑥) − 1 Why -1 ?
Contrast stretching using Thresholding