SlideShare a Scribd company logo
Histogram based enhancement
IMAGE HISTOGRAM
 Acts as a graphical representation of the
lightness/color distribution in a digital image.
 Shows how many times a particular gray
level (intensity) appears in an image.
 It plots the number of pixels for each value.
WHY HISTOGRAM?
 Information derived from histograms are
useful in image processing application.
 Provides an visual information for evaluating
statistical properties of the image.
 Histogram reveals the object is under-
exposed or over-exposed.
4
UNDER-EXPOSED IMAGE
0 50 100 150 200 250
0
0.5
1
1.5
2
2.5
3
3.5
4
x 10
4
Histogram information reveals that image is under-exposed
OVER-EXPOSED IMAGE
0 50 100 150 200 250
0
1000
2000
3000
4000
5000
6000
7000
 Histogram information reveals that image is over-exposed
HISTOGRAM PROCESSING
 The histogram of a digital image with gray
levels in the range [0, L-1]
 Discrete function:
h(rk) = nk
rk - kth gray level
nk - number of pixels in the image having
gray level rk.
 Most of the histogram components are localized in
the low intensity values .
 Not making dynamic range of pixels.
EXAMPLE OF HISTOGRAM-1
 Histogram components are localized to high intensity
values.
 Not making dynamic range of pixels.
EXAMPLE OF HISTOGRAM-2
Bright image
 Most of the histogram components are localized in
the middle region intensity values.
 Not making dynamic range of pixels.
EXAMPLE OF HISTOGRAM-3
Low contrast image
 High contrast image components are spread
dynamically .
EXAMPLE OF HISTOGRAM-4
High contrast image
EXAMPLE OF HISTOGRAM-4
 In histogram-4 components are distributed over
all the intensity range.
 Distribution is almost uniform with few peaks.
 If the distribution is uniform , the image tends to
have a high dynamic range and the details are
more easily perceived.
 Proved that high contrast image gives better
visual appearance.
HISTOGRAM PROCESSING
 Histogram Equalization
 Histogram Matching/Specification
 Local Histogram Processing
HISTOGRAM EQUALIZATION
 Techniques for adjusting image intensities to
enhance contrast.
 Used to improve the visual appearance of an
image.
 Spread out the frequencies in an image (or
equalizing image) is a simple way to dark or
washed out images.
HOW TO IMPLEMENT HISTOGRAM EQUALIZATION?
Step 1:For images with discrete gray values, compute:
n
n
rp k
k )(
10  kr 10  Lk
L: Total number of gray levels
nk: Number of pixels with gray value rk
n: Total number of pixels in the image
Step 2: Compute the discrete version of the previous transformation :


k
j
jrkk rpLrTs
0
)()1()( 10  Lk
EXAMPLE-1
 Consider an 8-level 64 x 64 image with gray values (0, 1, …,7). The
normalized gray values are (0, 1/7, 2/7, …, 1). n= 64 x 64 =4096.The normalized
histogram is given below:
APPLYING THE TRANSFORMATION
























k
j
rr
k
j
rr
k
j
rr
k
j
rr
k
j
rr
k
j
rr
k
j
rrr
k
j
rr
rpsrprTs
rpsrprTs
rpsrprTs
rpsrprTs
rpsrprTs
rpsrprTs
rprprprTs
rprprTs
0
76777
0
65666
0
54555
0
4444
0
3333
0
1222
0
10111
0
0000
700.7)02.0(786.6)(7)(7)(
786.6)03.0(765.6)(7)(7)(
765.6)06.0(723.6)(7)(7)(
623.6)08.0(767.5)(73)(7)(
667.5)16.0(755.4)(72)(7)(
555.4)21.0(708.3)(71)(7)(
308.3)25.0(733.1)(7)(7)(7)(
133.1)19.0(7)(7)(7)(
CALCULATION
 r0=0 was mapped to s0=1,there are 790 pixels(nk).
 r1=1 was mapped to s1=3,there are 1023 pixels.
 r2=2 was mapped to s2=5,there are 850 pixels.
 r3 and r4 were mapped to the same value, so there are
(656+329)=985 pixels with a value of 6.
 r5,r6 and r7 were mapped to the same value, so there are
(245+122+81)=448 pixels with a value of 7.
 Dividing all these pixels by n=4096 yielded the
equalized histogram.
EQUALIZATION OF A DISCRETE RANDOM VARIABLE
ORIGINAL IMAGE HISTOGRAM
TRANSFORMATION FUNCTION
EQUALIZED HISTOGRAM
ORIGINAL IMAGE AND ITS HISTOGRAM
HISTOGRAM EQUALIZED IMAGE AND ITS HISTOGRAM
HISTOGRAM SPECIFICATION/MATCHING
 Equalize the levels of the original image.
 Histogram matching is the transformation of an image.
 The process of Histogram Matching takes in an input image and
produces an output image that is based upon a specified histogram.
 The well-known histogram equalization method is a special case in
which the specified histogram is uniformly distributed.
HISTOGRAM SPECIFICATION/MATCHING
 Sometimes, this may not be desirable. Instead, we may
want a transformation that yields an output image with a
pre-specified histogram.
 Applying the transformation H to the original image yields an
image with histogram .
 Again, the actual histogram of the output image does not
exactly but only approximately matches with the specified
histogram. This is because we are dealing with discrete
histograms.
EXAMPLE: HISTOGRAM MATCHING
Suppose that a 3-bit image (L=8) of size 64 × 64 pixels (MN = 4096)
has the intensity distribution shown in the following table (on the left).
Get the histogram transformation function and make the output
image with the specified histogram, listed in the table on the right.
EXAMPLE: HISTOGRAM MATCHING
(a) Original image histogram (b) Specified histogram
ORIGINAL IMAGE AND ITS HISTOGRAM
HISTOGRAM SPECIFIED IMAGE AND ITS HISTOGRAM
LOCAL HISTOGRAM PROCESSING
 To enhances an image with low contrast, using a method called local
histogram equalization, which spreads out the most frequent intensity
values in an image.
 Define a neighborhood and move its center from pixel to pixel.
 At each location, the histogram of the points in the neighborhood is
computed. Either histogram equalization or histogram specification
transformation function is obtained.
 Map the intensity of the pixel centered in the neighborhood.
 Move to the next location and repeat the procedure.
EXAMPLE
(a) Original (b) Equalized (c) Locally equalized
Histogram based enhancement

More Related Content

PPSX
Image Enhancement in Spatial Domain
PPTX
Histogram based Enhancement
PPTX
Histogram Processing
PPTX
Image filtering in Digital image processing
ODP
image compression ppt
PPT
Spatial filtering
PPTX
Image Filtering in the Frequency Domain
PPT
05 histogram processing DIP
Image Enhancement in Spatial Domain
Histogram based Enhancement
Histogram Processing
Image filtering in Digital image processing
image compression ppt
Spatial filtering
Image Filtering in the Frequency Domain
05 histogram processing DIP

What's hot (20)

PPT
Input devices in computer graphics
PPTX
Image Enhancement using Frequency Domain Filters
PDF
Image sampling and quantization
PDF
Image Segmentation (Digital Image Processing)
PDF
Digital image processing
PPTX
Dilation and erosion
PPT
Chapter 2 Image Processing: Pixel Relation
PPTX
Mpeg video compression
PPSX
Image Processing: Spatial filters
PPTX
Image processing second unit Notes
PPT
Histogram equalization
PDF
Digital Image Processing: Digital Image Fundamentals
PPTX
Halftoning in Computer Graphics
PPTX
Image enhancement lecture
PDF
4.intensity transformations
PPTX
Histogram Equalization
PDF
Big data assignment
PPTX
Introduction to image contrast and enhancement method
PPT
image enhancement
Input devices in computer graphics
Image Enhancement using Frequency Domain Filters
Image sampling and quantization
Image Segmentation (Digital Image Processing)
Digital image processing
Dilation and erosion
Chapter 2 Image Processing: Pixel Relation
Mpeg video compression
Image Processing: Spatial filters
Image processing second unit Notes
Histogram equalization
Digital Image Processing: Digital Image Fundamentals
Halftoning in Computer Graphics
Image enhancement lecture
4.intensity transformations
Histogram Equalization
Big data assignment
Introduction to image contrast and enhancement method
image enhancement
Ad

Viewers also liked (20)

PDF
Histogram Equalization(Image Processing Presentation)
PDF
S S08 D I P Lec07 Pixel Operations
PPT
Image Processing(Beta1)
PPTX
Digital image processing Tool presentation
PDF
Image Processing 4
PPTX
Class Interval Histograms
PPTX
PPT
Histograms
PPTX
Application of image processing
PPT
Spatial filtering using image processing
PPTX
Powerpoint presentation histogram
PPTX
Histogram
PDF
Digital Image Processing - Image Compression
PPT
06 spatial filtering DIP
PPTX
Spandana image processing and compression techniques (7840228)
PPT
Fields of digital image processing slides
PDF
JPEG Image Compression
PPT
Histogram
PPTX
Image compression
PPTX
Image processing and compression techniques
Histogram Equalization(Image Processing Presentation)
S S08 D I P Lec07 Pixel Operations
Image Processing(Beta1)
Digital image processing Tool presentation
Image Processing 4
Class Interval Histograms
Histograms
Application of image processing
Spatial filtering using image processing
Powerpoint presentation histogram
Histogram
Digital Image Processing - Image Compression
06 spatial filtering DIP
Spandana image processing and compression techniques (7840228)
Fields of digital image processing slides
JPEG Image Compression
Histogram
Image compression
Image processing and compression techniques
Ad

Similar to Histogram based enhancement (20)

PPT
Histogram.ppt Histogram equilization to improve the image quality
PPT
ModuleII.ppt
PPT
ModuleII.ppt
PPT
ModuleII.ppt
PPTX
ch-2.2 histogram image processing .pptx
PPTX
PPTX
Image Enhacement for the image improvement
PDF
PDF
Lec_3_Image Enhancement_spatial Domain.pdf
PDF
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
PPTX
Image Processing - Unit II - Image Enhancement discussed
PDF
Matlab practical ---5.pdf
PPTX
project presentation-90-MCS-200003.pptx
PDF
D046022629
PPTX
IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN.pptx
PPT
Intensity Transformation and Spatial Filtering -Gonzales Chapter 3.1-3.3 (4).ppt
PPTX
Histograms and Point Operations in Computer Vision
PDF
Image processinglab image processing image processing
PPTX
Discrete fourier and cosine transform (DCT,DFT)
Histogram.ppt Histogram equilization to improve the image quality
ModuleII.ppt
ModuleII.ppt
ModuleII.ppt
ch-2.2 histogram image processing .pptx
Image Enhacement for the image improvement
Lec_3_Image Enhancement_spatial Domain.pdf
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Image Processing - Unit II - Image Enhancement discussed
Matlab practical ---5.pdf
project presentation-90-MCS-200003.pptx
D046022629
IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN.pptx
Intensity Transformation and Spatial Filtering -Gonzales Chapter 3.1-3.3 (4).ppt
Histograms and Point Operations in Computer Vision
Image processinglab image processing image processing
Discrete fourier and cosine transform (DCT,DFT)

Recently uploaded (20)

PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
1. Introduction to Computer Programming.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
project resource management chapter-09.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
A comparative analysis of optical character recognition models for extracting...
1. Introduction to Computer Programming.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
project resource management chapter-09.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
WOOl fibre morphology and structure.pdf for textiles
Accuracy of neural networks in brain wave diagnosis of schizophrenia
OMC Textile Division Presentation 2021.pptx
Assigned Numbers - 2025 - Bluetooth® Document
1 - Historical Antecedents, Social Consideration.pdf
Unlocking AI with Model Context Protocol (MCP)
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Heart disease approach using modified random forest and particle swarm optimi...
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
DP Operators-handbook-extract for the Mautical Institute
Building Integrated photovoltaic BIPV_UPV.pdf

Histogram based enhancement