SlideShare a Scribd company logo
1 of 21
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

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

Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...IRJET Journal
 
Copy Move Forgery Detection Using GLCM Based Statistical Features
Copy Move Forgery Detection Using GLCM Based Statistical Features Copy Move Forgery Detection Using GLCM Based Statistical Features
Copy Move Forgery Detection Using GLCM Based Statistical Features ijcisjournal
 
ModuleII.ppt
ModuleII.pptModuleII.ppt
ModuleII.pptSKILL2021
 
DSP presentation_latest
DSP presentation_latestDSP presentation_latest
DSP presentation_latestHaowei Jiang
 
IMAGE COMPRESSION BY EMBEDDING FIVE MODULUS METHOD INTO JPEG
IMAGE COMPRESSION BY EMBEDDING FIVE  MODULUS METHOD INTO JPEGIMAGE COMPRESSION BY EMBEDDING FIVE  MODULUS METHOD INTO JPEG
IMAGE COMPRESSION BY EMBEDDING FIVE MODULUS METHOD INTO JPEGsipij
 
Fuzzy Logic based Contrast Enhancement
Fuzzy Logic based Contrast EnhancementFuzzy Logic based Contrast Enhancement
Fuzzy Logic based Contrast EnhancementSamrudh Keshava Kumar
 
Histogram problem Ppt.pptx
Histogram problem Ppt.pptxHistogram problem Ppt.pptx
Histogram problem Ppt.pptxDarshanAher5
 
Programming in matlab lesson5
Programming in matlab lesson5Programming in matlab lesson5
Programming in matlab lesson5najmah17
 
Tchebichef moment based hilbert scan for image compression
Tchebichef moment based hilbert scan for image compressionTchebichef moment based hilbert scan for image compression
Tchebichef moment based hilbert scan for image compressionAlexander Decker
 
A modified symmetric local binary pattern for image features extraction
A modified symmetric local binary pattern for image features extractionA modified symmetric local binary pattern for image features extraction
A modified symmetric local binary pattern for image features extractionTELKOMNIKA JOURNAL
 
Laureate Online Education Internet and Multimedia Technolog.docx
Laureate Online Education    Internet and Multimedia Technolog.docxLaureate Online Education    Internet and Multimedia Technolog.docx
Laureate Online Education Internet and Multimedia Technolog.docxDIPESH30
 
Simple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Simple Pendulum Experiment and Automatic Survey Grading using Computer VisionSimple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Simple Pendulum Experiment and Automatic Survey Grading using Computer VisionAnish Patel
 
Digital Image processing
Digital Image processingDigital Image processing
Digital Image processingAmir Hossain
 

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

Gi kerkythea tut
Gi kerkythea tutGi kerkythea tut
Gi kerkythea tut
 
Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...
 
Copy Move Forgery Detection Using GLCM Based Statistical Features
Copy Move Forgery Detection Using GLCM Based Statistical Features Copy Move Forgery Detection Using GLCM Based Statistical Features
Copy Move Forgery Detection Using GLCM Based Statistical Features
 
ModuleII.ppt
ModuleII.pptModuleII.ppt
ModuleII.ppt
 
ModuleII.ppt
ModuleII.pptModuleII.ppt
ModuleII.ppt
 
ModuleII.ppt
ModuleII.pptModuleII.ppt
ModuleII.ppt
 
DSP presentation_latest
DSP presentation_latestDSP presentation_latest
DSP presentation_latest
 
IMAGE COMPRESSION BY EMBEDDING FIVE MODULUS METHOD INTO JPEG
IMAGE COMPRESSION BY EMBEDDING FIVE  MODULUS METHOD INTO JPEGIMAGE COMPRESSION BY EMBEDDING FIVE  MODULUS METHOD INTO JPEG
IMAGE COMPRESSION BY EMBEDDING FIVE MODULUS METHOD INTO JPEG
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
Fuzzy Logic based Contrast Enhancement
Fuzzy Logic based Contrast EnhancementFuzzy Logic based Contrast Enhancement
Fuzzy Logic based Contrast Enhancement
 
Histogram problem Ppt.pptx
Histogram problem Ppt.pptxHistogram problem Ppt.pptx
Histogram problem Ppt.pptx
 
Programming in matlab lesson5
Programming in matlab lesson5Programming in matlab lesson5
Programming in matlab lesson5
 
Jpeg
JpegJpeg
Jpeg
 
Tchebichef moment based hilbert scan for image compression
Tchebichef moment based hilbert scan for image compressionTchebichef moment based hilbert scan for image compression
Tchebichef moment based hilbert scan for image compression
 
A modified symmetric local binary pattern for image features extraction
A modified symmetric local binary pattern for image features extractionA modified symmetric local binary pattern for image features extraction
A modified symmetric local binary pattern for image features extraction
 
Laureate Online Education Internet and Multimedia Technolog.docx
Laureate Online Education    Internet and Multimedia Technolog.docxLaureate Online Education    Internet and Multimedia Technolog.docx
Laureate Online Education Internet and Multimedia Technolog.docx
 
Simple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Simple Pendulum Experiment and Automatic Survey Grading using Computer VisionSimple Pendulum Experiment and Automatic Survey Grading using Computer Vision
Simple Pendulum Experiment and Automatic Survey Grading using Computer Vision
 
Digital Image processing
Digital Image processingDigital Image processing
Digital Image processing
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 

More from GSCWU

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

More from GSCWU (7)

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

Recently uploaded

Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 

Recently uploaded (20)

Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 

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