SlideShare a Scribd company logo
Image enhancement techniques - Digital Image Processing
Image enhancement techniques - Digital Image Processing
Image Enhancement Definition
• Image Enhancement: is the process that
improves the quality of the image for a
specific application
Image Enhancement Methods
• Spatial Domain Methods (Image Plane)
Techniques are based on direct manipulation of pixels
in an image
• Frequency Domain Methods
Techniques are based on modifying the Fourier
transform of the image.
• Combination Methods
There are some enhancement techniques based on
various combinations of methods from the first two
categories
5
Topic for Learning through evocation
Spatial Domain Methods
• As indicated previously, the term spatial domain refers to
the aggregate of pixels composing an image.
g(x,y) = T [f(x,y)]
Where f(x,y) in the input image, g(x,y) is the processed
image and T is as operator on f, defined over some
neighborhood of (x,y)
7
What is the purpose of road roller?
8
How it is used to smoothen the road??
levelling
equalize
9
10
11
12
Smoothing
Capture important patterns in the data
Leaving out noise or other fine-scale structures
13
14
15
Formative assessment questions I
1. State the effect of smoothing filter in spatial domain. (R/F)
a) reduce the noise present in image
b) reduce fine details of image
c) Reduce the intensity of image
d) both (a) and (b)
2. Compute the intensity range of 9 level grey image. (Ap/C)
a) 0 to 255
b) 0 to 512
c) -256 to 255
d) 0 to 128
16
Smoothing linear filters
– Averaging filters
• Box filter
• Weighted average filter
17
• The general implementation for filtering an MXN image with
a weighted averaging filter of size mxn is given by
where a=(m-1)/2 and b=(n-1)/2
 
 

 


 



 a
a
s
b
b
t
a
a
s
b
b
t
t
s
w
t
y
s
x
f
t
s
w
y
x
g
)
,
(
)
,
(
)
,
(
)
,
(
18
Smoothing Spatial Filtering
1 1 1
1 1 1
1 1 1
Origin x
y Image f (x, y)
e = 1/9*(1
*106 +
1
*104 + 1
*100 + 1
*108 +
1
*99 + 1
*98 +
1
*95 + 1
*90 + 1
*85)
= 98.3333
Filter
Simple 3*3
Neighbourhood
106
104
99
95
100 108
98
90 85
1
/9
1
/9
1
/9
1
/9
1
/9
1
/9
1
/9
1
/9
1
/9
3*3 Smoothing
Filter
104 100 108
99 106 98
95 90 85
Original Image
Pixels
* 1/9
The above is repeated for every pixel in the
original image to generate the smoothed image
19
0 254 10 9 8
11 15 8 17 51
21 250 240 252 231
10 15 20 230 225
31 33 35 11 9
61 90 117 92 63
36 66 116 142 112
33 62 112 133 104
Original Image Average Filter
0 0 0 0 0 0 0
0 0 254 10 9 8 0
0 11 15 8 17 51 0
0 21 250 240 252 231 0
0 10 15 20 230 225 0
0 0 0 0 0 0 0
Append Zero
Filtered image
20
Smoothing Spatial Filters
Image smoothing with masks of various sizes
21
Non-linear filters
• Median filter
3X3 neibourhood
(10,20,20,20,15,20,20,25,100)
Arrange it in ascending order
(10,15,20,20,20, 20,20,25,100)
• Replacing 15 by 20 (center pixel)
22
• Max filter: find out brightest point in an image
& reducing pepper noise
• Min filter : find out darkest point in an image
& reducing salt noise
23
Example
1 1 1
1 89 1
1 1 1
• Median {1 1 1 1 1 1 1 1 89}
• Min {1 1 1 1 1 1 1 1 89}
• Max {1 1 1 1 1 1 1 1 89}
24
25
26
27
28
Formative assessment questions II
1. Predict the intensity value of pepper noise in 6 level grey image.
(Ap/C)
a)0
b)255
c)128
d)1
2. Find the mean, median, min and max of the sequence
1,1,2,3,5,6,6,8. (Ap/C)
a) 4,3,1,8
b) 4,4,1,8
c) 4,5,1,8
d) 32,5,1,8
29
3. Compute the intensity value of salt noise
pixels in 9 level grey image. [Ap/C]
a)0
b)255
c)128
d)512
30
Discussion
31
Mind map
32
Summary
 Spatial smoothing filter
 Basics of noise
 Spatial domain
 Spatial filtering
 Classification of spatial domain filter
 Smoothing linear filters
o Box filter
o Weighted average filter
 Convolution for filter operation
 Smoothing non-linear filters
o Median filter
o Min filter
o Max filter
33
Assessment through Analogy
1. Consider the below real time image of a child
which has salt and pepper noise in it. Compare
the two resultant images produced by
applying mean and median filter.
34
35
2. The following image is affected by salt noise.
“The salt noise will be completely removed
even if the median filter is used instead of min
filter”. Justify the above statement.
36
If the salt noise = 5%
Noisy image Median Min
37
If the salt noise = 50%
Noisy image Median Min
38
References
 Rafael C Gonzalez, Richard E Woods, Digital Image
Processing, 3rd Edition, Pearson Education, 2009
 William K Pratt, Digital Image Processing, John Willey, 2007
 Milan Sonka, Vaclav Hlavac, Roger Boyle, Image Processing
Analysis and Machine Vision, Thompson Learning, 2008
 S.Jayaraman, S.Esakkirajan and T.Veerakumar, Digital Image
Processing, Tata McGraw Hill Education Private Limited,
2009
 Bhabatosh Chanda, D. Dutta Majumder, Digital Image
Processing and Analysis, Prentice Hall of India, 2011

More Related Content

PPTX
Smoothing in Digital Image Processing
PPTX
imge enhncement sptil filtering55555.pptx
PPT
Digital Image Processing UNIT-2.ppt
PDF
Spatial Domain Filtering.pdf
PPTX
SPATIAL FILTERING IN IMAGE PROCESSING
PDF
CSE367 Lecture- image sinal processing lecture
PPTX
PPT
Spatial domain and filtering
Smoothing in Digital Image Processing
imge enhncement sptil filtering55555.pptx
Digital Image Processing UNIT-2.ppt
Spatial Domain Filtering.pdf
SPATIAL FILTERING IN IMAGE PROCESSING
CSE367 Lecture- image sinal processing lecture
Spatial domain and filtering

Similar to Image enhancement techniques - Digital Image Processing (20)

PPTX
Unit-2 Image Enhancement and Restoration Techniques.pptx
PPT
06 spatial filtering DIP
PDF
Lecture 6-2023.pdf
PPT
3 intensity transformations and spatial filtering slides
PDF
A study to improve the quality of image enhancement
PPTX
Image enhancement
PPT
Spatial filtering
PDF
restoration_recon_chap5_GW.pdf
PPTX
Digital image processing
PDF
Lecture 4
PPT
Image Processing Definition Digital Image
PPSX
Noise models presented by Nisha Menon K
PPT
05_Spatial_Filtering.ppt
PPTX
Digital Image Processing Fundamental
PPTX
3rd unit.pptx
PDF
Image processing, Noise, Noise Removal filters
PPT
Spatial filtering
PPT
Chapter 5
PPTX
2. filtering basics
PPTX
M03 - Imagerestoration digital image processing ppt
Unit-2 Image Enhancement and Restoration Techniques.pptx
06 spatial filtering DIP
Lecture 6-2023.pdf
3 intensity transformations and spatial filtering slides
A study to improve the quality of image enhancement
Image enhancement
Spatial filtering
restoration_recon_chap5_GW.pdf
Digital image processing
Lecture 4
Image Processing Definition Digital Image
Noise models presented by Nisha Menon K
05_Spatial_Filtering.ppt
Digital Image Processing Fundamental
3rd unit.pptx
Image processing, Noise, Noise Removal filters
Spatial filtering
Chapter 5
2. filtering basics
M03 - Imagerestoration digital image processing ppt
Ad

More from BharaniDharan195623 (6)

PPTX
NOISE PERFORMANCE IN FM RECEIVERS - Figure of Merit
PPTX
Histogram equalization and matching - Digital Image Processing
PPTX
Structures - C Programming - Union - Basic Programming
PPTX
Pulse Amplitude Modulation - Analog communication
PPTX
TOS based Embedded system design and development
PPT
Configuration of IoT devices - Systems managament
NOISE PERFORMANCE IN FM RECEIVERS - Figure of Merit
Histogram equalization and matching - Digital Image Processing
Structures - C Programming - Union - Basic Programming
Pulse Amplitude Modulation - Analog communication
TOS based Embedded system design and development
Configuration of IoT devices - Systems managament
Ad

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Digital Logic Computer Design lecture notes
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Well-logging-methods_new................
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Lecture Notes Electrical Wiring System Components
DOCX
573137875-Attendance-Management-System-original
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Construction Project Organization Group 2.pptx
additive manufacturing of ss316l using mig welding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Digital Logic Computer Design lecture notes
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Model Code of Practice - Construction Work - 21102022 .pdf
Geodesy 1.pptx...............................................
OOP with Java - Java Introduction (Basics)
Well-logging-methods_new................
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
R24 SURVEYING LAB MANUAL for civil enggi
Lecture Notes Electrical Wiring System Components
573137875-Attendance-Management-System-original
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx

Image enhancement techniques - Digital Image Processing

  • 3. Image Enhancement Definition • Image Enhancement: is the process that improves the quality of the image for a specific application
  • 4. Image Enhancement Methods • Spatial Domain Methods (Image Plane) Techniques are based on direct manipulation of pixels in an image • Frequency Domain Methods Techniques are based on modifying the Fourier transform of the image. • Combination Methods There are some enhancement techniques based on various combinations of methods from the first two categories
  • 5. 5 Topic for Learning through evocation
  • 6. Spatial Domain Methods • As indicated previously, the term spatial domain refers to the aggregate of pixels composing an image. g(x,y) = T [f(x,y)] Where f(x,y) in the input image, g(x,y) is the processed image and T is as operator on f, defined over some neighborhood of (x,y)
  • 7. 7 What is the purpose of road roller?
  • 8. 8 How it is used to smoothen the road?? levelling equalize
  • 9. 9
  • 10. 10
  • 11. 11
  • 12. 12 Smoothing Capture important patterns in the data Leaving out noise or other fine-scale structures
  • 13. 13
  • 14. 14
  • 15. 15 Formative assessment questions I 1. State the effect of smoothing filter in spatial domain. (R/F) a) reduce the noise present in image b) reduce fine details of image c) Reduce the intensity of image d) both (a) and (b) 2. Compute the intensity range of 9 level grey image. (Ap/C) a) 0 to 255 b) 0 to 512 c) -256 to 255 d) 0 to 128
  • 16. 16 Smoothing linear filters – Averaging filters • Box filter • Weighted average filter
  • 17. 17 • The general implementation for filtering an MXN image with a weighted averaging filter of size mxn is given by where a=(m-1)/2 and b=(n-1)/2                a a s b b t a a s b b t t s w t y s x f t s w y x g ) , ( ) , ( ) , ( ) , (
  • 18. 18 Smoothing Spatial Filtering 1 1 1 1 1 1 1 1 1 Origin x y Image f (x, y) e = 1/9*(1 *106 + 1 *104 + 1 *100 + 1 *108 + 1 *99 + 1 *98 + 1 *95 + 1 *90 + 1 *85) = 98.3333 Filter Simple 3*3 Neighbourhood 106 104 99 95 100 108 98 90 85 1 /9 1 /9 1 /9 1 /9 1 /9 1 /9 1 /9 1 /9 1 /9 3*3 Smoothing Filter 104 100 108 99 106 98 95 90 85 Original Image Pixels * 1/9 The above is repeated for every pixel in the original image to generate the smoothed image
  • 19. 19 0 254 10 9 8 11 15 8 17 51 21 250 240 252 231 10 15 20 230 225 31 33 35 11 9 61 90 117 92 63 36 66 116 142 112 33 62 112 133 104 Original Image Average Filter 0 0 0 0 0 0 0 0 0 254 10 9 8 0 0 11 15 8 17 51 0 0 21 250 240 252 231 0 0 10 15 20 230 225 0 0 0 0 0 0 0 0 Append Zero Filtered image
  • 20. 20 Smoothing Spatial Filters Image smoothing with masks of various sizes
  • 21. 21 Non-linear filters • Median filter 3X3 neibourhood (10,20,20,20,15,20,20,25,100) Arrange it in ascending order (10,15,20,20,20, 20,20,25,100) • Replacing 15 by 20 (center pixel)
  • 22. 22 • Max filter: find out brightest point in an image & reducing pepper noise • Min filter : find out darkest point in an image & reducing salt noise
  • 23. 23 Example 1 1 1 1 89 1 1 1 1 • Median {1 1 1 1 1 1 1 1 89} • Min {1 1 1 1 1 1 1 1 89} • Max {1 1 1 1 1 1 1 1 89}
  • 24. 24
  • 25. 25
  • 26. 26
  • 27. 27
  • 28. 28 Formative assessment questions II 1. Predict the intensity value of pepper noise in 6 level grey image. (Ap/C) a)0 b)255 c)128 d)1 2. Find the mean, median, min and max of the sequence 1,1,2,3,5,6,6,8. (Ap/C) a) 4,3,1,8 b) 4,4,1,8 c) 4,5,1,8 d) 32,5,1,8
  • 29. 29 3. Compute the intensity value of salt noise pixels in 9 level grey image. [Ap/C] a)0 b)255 c)128 d)512
  • 32. 32 Summary  Spatial smoothing filter  Basics of noise  Spatial domain  Spatial filtering  Classification of spatial domain filter  Smoothing linear filters o Box filter o Weighted average filter  Convolution for filter operation  Smoothing non-linear filters o Median filter o Min filter o Max filter
  • 33. 33 Assessment through Analogy 1. Consider the below real time image of a child which has salt and pepper noise in it. Compare the two resultant images produced by applying mean and median filter.
  • 34. 34
  • 35. 35 2. The following image is affected by salt noise. “The salt noise will be completely removed even if the median filter is used instead of min filter”. Justify the above statement.
  • 36. 36 If the salt noise = 5% Noisy image Median Min
  • 37. 37 If the salt noise = 50% Noisy image Median Min
  • 38. 38 References  Rafael C Gonzalez, Richard E Woods, Digital Image Processing, 3rd Edition, Pearson Education, 2009  William K Pratt, Digital Image Processing, John Willey, 2007  Milan Sonka, Vaclav Hlavac, Roger Boyle, Image Processing Analysis and Machine Vision, Thompson Learning, 2008  S.Jayaraman, S.Esakkirajan and T.Veerakumar, Digital Image Processing, Tata McGraw Hill Education Private Limited, 2009  Bhabatosh Chanda, D. Dutta Majumder, Digital Image Processing and Analysis, Prentice Hall of India, 2011