SlideShare a Scribd company logo
2
Most read
4
Most read
7
Most read
1
Digital Image Processing
Histogram Equalization
2
Image Enhancement
 Defined as it is usually used when an image having
a distortion and noise present into it which can
tend to make a loss of Information in the image to
recover that key Information, Enhancement mainly
use for removal of noise , sharpening and
brightening of an image.
 Some Mathematical and Logical Operations are
used to overcome the noise and to enhance the
Image
3
Histogram Equalization
 It is used to enhance the Contrast
 Contrast is the difference in color that makes an object
distinguishable from other objects within the same field of view
4
Cumulative Histogram (Exp)
3 2 4 5
7 7 8 2
3 1 2 3
5 4 6 7
 Now, Let us take a grayscale image in matrix form.
Let each element be a pixel of an
image and values of the elements
represent intensities of the pixels.
We can see that the intensity of the pixels vary between 1-10.
Suppose that we want to perform histogram equalization on this
image & scale the intensity to 1-20.
4*4 image matrix
5
 First step is to count the total number of pixels associated with
each pixel intensity.
Cumulative Histogram (Exp)
3 2 4 5
7 7 8 2
3 1 2 3
5 4 6 7
4*4 image matrix
Pixel Intensities (rk) No. of pixel (nk)
1 1
2 3
3 3
4 2
5 2
6 1
7 3
8 1
9 0
10 0
Total 16
6
 Second step is to calculate probability of each pixel intensity in the image
matrix.
 Total number of element is 16!
 Probability is no. of pixel divided by
total no. of pixels(16).
Cumulative Histogram (Exp)
Pixel
Intensities (rk)
No. of pixel
(nk)
Probability
(PDF)
1 1 1/16=0.0625
2 3 3/16=0.1875
3 3 3/16=0.1875
4 2 2/16=0.125
5 2 2/16=0.125
6 1 1/16=0.0625
7 3 3/16=0.1875
8 1 1/16=0.0625
9 0 0/16=0
10 0 0/16=0
Total 16
3 2 4 5
7 7 8 2
3 1 2 3
5 4 6 7
4*4 image matrix
7
 The next step is to calculate cumulative probability.
 Cumulative probability (CDF)
is equal to previous (PDF) plus
current (PDF).
0.0625+0.1875=0.25 & so on....
Pixel
Intensities
(rk)
No. of
pixel
(nk)
Probability
(PDF)
Cumulative
probability(CDF)
1 1 0.0625 0.0625
2 3 0.1875 0.25
3 3 0.1875 0.4375
4 2 0.125 0.5625
5 2 0.125 0.6825
6 1 0.0625 0.75
7 3 0.1875 0.9375
8 1 0.0625 1
9 0 0 1
10 0 0 1
Total 16 Total 1
3 2 4 5
7 7 8 2
3 1 2 3
5 4 6 7
4*4 image matrix
Cumulative Histogram (Exp)
8
 Since we want to change the intensity range to 1-20, we shall multiply
cumulative probability by 20.
 Cumulative probability (CDF)
multiply by 20.
0.0625*20=1.25
3 2 4 5
7 7 8 2
3 1 2 3
5 4 6 7
4*4 image matrix
Pixel
Intensities
(rk)
No. of
pixel
(nk)
Probability
(PDF)
Cumulative
probability(CDF)
Cumulative
probability*20
1 1 0.0625 0.0625 1.25
2 3 0.1875 0.25 5
3 3 0.1875 0.4375 8.75
4 2 0.125 0.5625 11.25
5 2 0.125 0.6825 13.75
6 1 0.0625 0.75 15
7 3 0.1875 0.9375 18.75
8 1 0.0625 1 20
9 0 0 1 20
10 0 0 1 20
Total 16
Cumulative Histogram (Exp)
9
 Finally, we round the decimal values obtained to the lower integer values
(also known as floor rounding).
 Like 13.75 to 13.
Cumulative Histogram (Exp)
3 2 4 5
7 7 8 2
3 1 2 3
5 4 6 7
4*4 image matrix
Pixel
Intensities
(rk)
No. of
pixel (nk)
Probability
(PDF)
C.P(CDF) C.P*20 Floor
Rounding
1 1 0.0625 0.0625 1.25 1
2 3 0.1875 0.25 5 5
3 3 0.1875 0.4375 8.75 8
4 2 0.125 0.5625 11.25 11
5 2 0.125 0.6825 13.75 13
6 1 0.0625 0.75 15 15
7 3 0.1875 0.9375 18.75 18
8 1 0.0625 1 20 20
9 0 0 1 20 20
10 0 0 1 20 20
Total 16
10
 So the original image has been transformed to the equalized image with
different intensity on each pixel.
3 2 4 5
7 7 8 2
3 1 2 3
5 4 6 7
4*4 Original image matrix
8 5 11 13
18 18 20 5
8 1 5 8
13 11 15 18
4*4 Transformed image matrix
Cumulative Histogram (Exp)
11
Cumulative Histogram (Exp)
 We can see that the intensity range of the pixel have been increased and
hence the histogram of the image will look more spread. This in turn is
called Histogram Equalization.
12
Example1:Perform Histogram Equalization of the Image
13
Histogram Equalization
14
Solution
15
Solution
16
Arithmetic Operation Between Images
 There are Array Operations which are carried out between
corresponding pixels pairs. The four arithmetic operations are
denoted as
 A(x,y) = f(x,y)+g(x,y)
 S(x,y) = f(x,y)-g(x,y)
 p(x,y) = f(x,y)*g(x,y)
 D(x,y) = f(x,y)/g(x,y)
 These all arithmetic operations are performed between
corresponding pixels pairs.
17
Important Points
 If the result is a floating point number,
round off its value
 If the result is above the pixel range,
select the max range value
 If the result is below the pixel range,
select the min range value
 If the result is infinity, write it as zero
18
Addition
Uses:
• Changing Image Background
• Watermark Images
19
Subtraction
20
Multiplication
21
Division

More Related Content

PPT
Chapter 6 Image Processing: Image Enhancement
PPTX
Unit 2. Image Enhancement in Spatial Domain.pptx
PDF
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
PDF
Lecture 4 Relationship between pixels
PPT
Fields of digital image processing slides
PPT
image enhancement
PPT
Segmentation
PDF
digital image processing, image processing
Chapter 6 Image Processing: Image Enhancement
Unit 2. Image Enhancement in Spatial Domain.pptx
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
Lecture 4 Relationship between pixels
Fields of digital image processing slides
image enhancement
Segmentation
digital image processing, image processing

What's hot (20)

PPTX
Image enhancement techniques
ODP
image compression ppt
PPTX
Image Filtering in the Frequency Domain
PPSX
Edge Detection and Segmentation
PPT
Image enhancement
PPTX
Image Representation & Descriptors
PPTX
Introduction to Digital Image Processing
PPTX
digital image processing
PPTX
5. gray level transformation
PPSX
Image Processing: Spatial filters
PPT
Image enhancement ppt nal2
PPTX
Computer graphics realism
PPT
08 frequency domain filtering DIP
PPTX
Image filtering in Digital image processing
PPTX
Spatial Filters (Digital Image Processing)
PPT
Spatial filtering
PPTX
PPTX
Fundamental steps in image processing
Image enhancement techniques
image compression ppt
Image Filtering in the Frequency Domain
Edge Detection and Segmentation
Image enhancement
Image Representation & Descriptors
Introduction to Digital Image Processing
digital image processing
5. gray level transformation
Image Processing: Spatial filters
Image enhancement ppt nal2
Computer graphics realism
08 frequency domain filtering DIP
Image filtering in Digital image processing
Spatial Filters (Digital Image Processing)
Spatial filtering
Fundamental steps in image processing
Ad

Similar to Image Enhancement and Histogram Equalization in Digital Image Processing.ppt (20)

PDF
Image Enhancement
PPT
ModuleII.ppt
PPT
ModuleII.ppt
PPT
ModuleII.ppt
PPTX
ch-2.2 histogram image processing .pptx
PPT
Histogram.ppt Histogram equilization to improve the image quality
PDF
ModuleII090.pdf
PPTX
Histogram Processing
PPT
05 histogram processing DIP
PPTX
Image processing second unit Notes
PPTX
Image Enhacement for the image improvement
PPTX
Discrete fourier and cosine transform (DCT,DFT)
PPT
Lect02.ppt
PPT
Computer vision 3 4
PPT
annotated-chap-3-gw.ppt
PPT
Histogram power point presentation for students
PPT
_Histogram.ppt............................
PPTX
Identification of image in class hist.pptx
PDF
PDF
Image enhancement
Image Enhancement
ModuleII.ppt
ModuleII.ppt
ModuleII.ppt
ch-2.2 histogram image processing .pptx
Histogram.ppt Histogram equilization to improve the image quality
ModuleII090.pdf
Histogram Processing
05 histogram processing DIP
Image processing second unit Notes
Image Enhacement for the image improvement
Discrete fourier and cosine transform (DCT,DFT)
Lect02.ppt
Computer vision 3 4
annotated-chap-3-gw.ppt
Histogram power point presentation for students
_Histogram.ppt............................
Identification of image in class hist.pptx
Image enhancement
Ad

More from GSCWU (7)

PPTX
XMPP and SIP Presence Protocols for Messaging and Session Control.pptx
PPTX
ORACLE NET ARCHITECTURE and Its Components.pptx
PPTX
Index and types of Index used in Oracle.pptx
PPTX
Amazon Web Services(AWS) in cloud Computing .pptx
PPTX
Amazon Web Services and its Global Infrastructure.pptx
PPT
Human Visual System in Digital Image Processing.ppt
PPTX
1.Service Models of Cloud Computing .pptx
XMPP and SIP Presence Protocols for Messaging and Session Control.pptx
ORACLE NET ARCHITECTURE and Its Components.pptx
Index and types of Index used in Oracle.pptx
Amazon Web Services(AWS) in cloud Computing .pptx
Amazon Web Services and its Global Infrastructure.pptx
Human Visual System in Digital Image Processing.ppt
1.Service Models of Cloud Computing .pptx

Recently uploaded (20)

PDF
Sports Quiz easy sports quiz sports quiz
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Basic Mud Logging Guide for educational purpose
PDF
RMMM.pdf make it easy to upload and study
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Structure & Organelles in detailed.
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Classroom Observation Tools for Teachers
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
master seminar digital applications in india
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Sports Quiz easy sports quiz sports quiz
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Institutional Correction lecture only . . .
Basic Mud Logging Guide for educational purpose
RMMM.pdf make it easy to upload and study
Supply Chain Operations Speaking Notes -ICLT Program
Pharma ospi slides which help in ospi learning
Cell Structure & Organelles in detailed.
O5-L3 Freight Transport Ops (International) V1.pdf
human mycosis Human fungal infections are called human mycosis..pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Classroom Observation Tools for Teachers
2.FourierTransform-ShortQuestionswithAnswers.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
master seminar digital applications in india
FourierSeries-QuestionsWithAnswers(Part-A).pdf

Image Enhancement and Histogram Equalization in Digital Image Processing.ppt

  • 2. 2 Image Enhancement  Defined as it is usually used when an image having a distortion and noise present into it which can tend to make a loss of Information in the image to recover that key Information, Enhancement mainly use for removal of noise , sharpening and brightening of an image.  Some Mathematical and Logical Operations are used to overcome the noise and to enhance the Image
  • 3. 3 Histogram Equalization  It is used to enhance the Contrast  Contrast is the difference in color that makes an object distinguishable from other objects within the same field of view
  • 4. 4 Cumulative Histogram (Exp) 3 2 4 5 7 7 8 2 3 1 2 3 5 4 6 7  Now, Let us take a grayscale image in matrix form. Let each element be a pixel of an image and values of the elements represent intensities of the pixels. We can see that the intensity of the pixels vary between 1-10. Suppose that we want to perform histogram equalization on this image & scale the intensity to 1-20. 4*4 image matrix
  • 5. 5  First step is to count the total number of pixels associated with each pixel intensity. Cumulative Histogram (Exp) 3 2 4 5 7 7 8 2 3 1 2 3 5 4 6 7 4*4 image matrix Pixel Intensities (rk) No. of pixel (nk) 1 1 2 3 3 3 4 2 5 2 6 1 7 3 8 1 9 0 10 0 Total 16
  • 6. 6  Second step is to calculate probability of each pixel intensity in the image matrix.  Total number of element is 16!  Probability is no. of pixel divided by total no. of pixels(16). Cumulative Histogram (Exp) Pixel Intensities (rk) No. of pixel (nk) Probability (PDF) 1 1 1/16=0.0625 2 3 3/16=0.1875 3 3 3/16=0.1875 4 2 2/16=0.125 5 2 2/16=0.125 6 1 1/16=0.0625 7 3 3/16=0.1875 8 1 1/16=0.0625 9 0 0/16=0 10 0 0/16=0 Total 16 3 2 4 5 7 7 8 2 3 1 2 3 5 4 6 7 4*4 image matrix
  • 7. 7  The next step is to calculate cumulative probability.  Cumulative probability (CDF) is equal to previous (PDF) plus current (PDF). 0.0625+0.1875=0.25 & so on.... Pixel Intensities (rk) No. of pixel (nk) Probability (PDF) Cumulative probability(CDF) 1 1 0.0625 0.0625 2 3 0.1875 0.25 3 3 0.1875 0.4375 4 2 0.125 0.5625 5 2 0.125 0.6825 6 1 0.0625 0.75 7 3 0.1875 0.9375 8 1 0.0625 1 9 0 0 1 10 0 0 1 Total 16 Total 1 3 2 4 5 7 7 8 2 3 1 2 3 5 4 6 7 4*4 image matrix Cumulative Histogram (Exp)
  • 8. 8  Since we want to change the intensity range to 1-20, we shall multiply cumulative probability by 20.  Cumulative probability (CDF) multiply by 20. 0.0625*20=1.25 3 2 4 5 7 7 8 2 3 1 2 3 5 4 6 7 4*4 image matrix Pixel Intensities (rk) No. of pixel (nk) Probability (PDF) Cumulative probability(CDF) Cumulative probability*20 1 1 0.0625 0.0625 1.25 2 3 0.1875 0.25 5 3 3 0.1875 0.4375 8.75 4 2 0.125 0.5625 11.25 5 2 0.125 0.6825 13.75 6 1 0.0625 0.75 15 7 3 0.1875 0.9375 18.75 8 1 0.0625 1 20 9 0 0 1 20 10 0 0 1 20 Total 16 Cumulative Histogram (Exp)
  • 9. 9  Finally, we round the decimal values obtained to the lower integer values (also known as floor rounding).  Like 13.75 to 13. Cumulative Histogram (Exp) 3 2 4 5 7 7 8 2 3 1 2 3 5 4 6 7 4*4 image matrix Pixel Intensities (rk) No. of pixel (nk) Probability (PDF) C.P(CDF) C.P*20 Floor Rounding 1 1 0.0625 0.0625 1.25 1 2 3 0.1875 0.25 5 5 3 3 0.1875 0.4375 8.75 8 4 2 0.125 0.5625 11.25 11 5 2 0.125 0.6825 13.75 13 6 1 0.0625 0.75 15 15 7 3 0.1875 0.9375 18.75 18 8 1 0.0625 1 20 20 9 0 0 1 20 20 10 0 0 1 20 20 Total 16
  • 10. 10  So the original image has been transformed to the equalized image with different intensity on each pixel. 3 2 4 5 7 7 8 2 3 1 2 3 5 4 6 7 4*4 Original image matrix 8 5 11 13 18 18 20 5 8 1 5 8 13 11 15 18 4*4 Transformed image matrix Cumulative Histogram (Exp)
  • 11. 11 Cumulative Histogram (Exp)  We can see that the intensity range of the pixel have been increased and hence the histogram of the image will look more spread. This in turn is called Histogram Equalization.
  • 16. 16 Arithmetic Operation Between Images  There are Array Operations which are carried out between corresponding pixels pairs. The four arithmetic operations are denoted as  A(x,y) = f(x,y)+g(x,y)  S(x,y) = f(x,y)-g(x,y)  p(x,y) = f(x,y)*g(x,y)  D(x,y) = f(x,y)/g(x,y)  These all arithmetic operations are performed between corresponding pixels pairs.
  • 17. 17 Important Points  If the result is a floating point number, round off its value  If the result is above the pixel range, select the max range value  If the result is below the pixel range, select the min range value  If the result is infinity, write it as zero
  • 18. 18 Addition Uses: • Changing Image Background • Watermark Images