SlideShare a Scribd company logo
Digital Image Processing
• Digital Image Processing denotes the process of digital images with
the use of digital computer.
• Digital images are contains various types of noises which are
reduces the quality of images. Noises can be removed by various
enhancement techniques.
• Noise is anything in the image that are unwanted or undesired
information
Examples:
– Light fluctuations
– Sensor noise
– Transmission
1
Smoothing
• Smoothing is often used to reduce noise within an image.
• Image smoothing is a key technology of image enhancement,
which can remove noise in images. So, it is a necessary
functional module in various image-processing software.
• Image smoothing is a method of improving the quality of
images.
• Smoothing is performed by spatial and frequency filters
2
Spatial filtering
• Spatial filtering term is the filtering operations that are
performed directly on the pixels of an image. The process
consists simply of moving the filter mask from point to point
in an image.
– Smoothing spatial filters
– Sharpening spatial filters
3
Smoothing Spatial Filters
• Smoothing filters are used for noise reduction and blurring
operations.
• It takes into account the pixels surrounding it in order to make
a determination of a more accurate version of this pixel.
• By taking neighboring pixels into consideration, extreme
“noisy” pixels can be filtered out.
• Unfortunately, extreme pixels can also represent original fine
details, which can also be lost due to the smoothing process
4
Cont…
Smoothing spatial filters
Linear Nonlinear
Mean Weiner Gaussian Min Max Median
5
Smoothing Linear Filters
• Smoothing linear spatial filter is the average of
the pixels contained in the neighborhood of
the filter mask.
• Averaging filters or low pass filters.
– Mean filter
– Gaussian filter
6
Mean Filter/Box Filter
• Mean filtering is simply to replace each pixel value in an
image with the mean (`average') value of its neighbors,
including itself.
• 3×3 normalized box filter:
20 40 10
10 20 20
10 20 30
20 40 10
10 20 20
10 20 30
7
Cont…
• Image smoothed with 33, 55, 99 and
11 11 box filters
8
Cont…
• Often a 3×3 square matrix is used, although larger
matrix (e.g. 5×5 squares) can be used for more
severe smoothing.
• Drawback:
– smoothing reduces fine image detail
9
Gaussian Filter
• A Gaussian filters smoothens an image by calculating
weighted averages in a filter box.
• It is used to `blur' images and remove detail and noise.
• Gives more weight at the central pixels and less weights to the
neighbors.
• The farther away the neighbors, the smaller the weight.
• Gaussian Blurs produce a very pure smoothing effect without
side effects.
10
Gaussian Smoothing Example
Original Sigma = 3
11
Smoothing Non Linear Filters
• Nonlinear spatial filters are Order-statistics filters whose
response is based on ordering (ranking) the pixels contained
in the image area encompassed by the filter, and then
replacing the value of the center pixel with the value
determined by the ranking result.
– Min and Max Filter
– Median Filter
– Midpoint Filter
12
Min and Max Filter
• The minimum filter selects the smallest value within the pixel
values and maximum filter selects the largest value within of
pixel values.
• Max filter is useful for finding the brightest points in an image
i.e. it removes salt noise.
• Min filter is useful for finding the darkest points in an image
i.e. it removes pepper noise.
• Both filters require a data sort.
13
Median Filter
• It smooth a few pixels whose values differ significantly from
their surroundings without affecting the other pixels.
• Best suited for “salt and pepper” noise
• Salt-and pepper noise can occur due to a random bit error in a
communication channel
14
Comparison Of Median And Box Filter
Noisy image 5x5 median filtered 5x5 box filter
15
Midpoint Filter
• The Midpoint filter blurs the image by replacing each
pixel with the average of the highest pixel and the
lowest pixel (with respect to intensity) within the
specified window size.
• Midpoint = (darkest + lightest)/2
16
Frequency filtering
• The basic model for filtering in the frequency domain
where F(u,v): the Fourier transform of the image to be
smoothed
H(u,v): a filter transfer function
• Smoothing is fundamentally a low pass operation in the
frequency domain.
• It is computationally faster than spatial domain.
17
Operation of frequency filter
18
Major filter categories
• Typically, filters are classified by examining their
properties in the frequency domain:
(1) Low-pass for smoothing
(2) High-pass for sharpening
(3) Band-pass
(4) Band-stop
19
Example
20
Original signal
Low-pass filtered
High-pass filtered
Band-pass filtered
Band-stop filtered
Cont…
• There are several standard forms of low pass filters (LPF).
– Ideal low pass filter
– Butterworth low pass filter
– Gaussian low pass filter
21
Ideal Low pass Filters (ILPFs)
• The simplest low pass filter is a filter that “cuts off” all high-frequency
components of the Fourier transform that are at a distance greater than a
specified distance D0 from the origin of the transform.
• The transfer function of an ideal low pass filter
where D(u,v) : the distance from point (u,v) to the center of their frequency
rectangle
22






),(if0
),(if1
),(
0
0
DvuD
DvuD
vuH
 2
1
22
)2/()2/(),( NvMuvuD 
Cont…
23
24
  n
DvuD
vuH 2
0/),(1
1
),(


Butterworth Low pass Filters (BLPFs)
25
Butterworth Low pass
Filters (BLPFs)
n=2
D0=5,15,30,80,and 230
26
n=1 n=2 n=5 n=20
27
2
0
2
2/),(
),( DvuD
evuH 

Gaussian Lowpass Filters (FLPFs)
28
Gaussian Low pass
Filters (FLPFs)
D0=5,15,30,80,and 230
29
Conclusion
• Image smoothing algorithms offer a wide variety of
approaches for modifying images to achieve visually
acceptable images. The choice of such techniques is
a function of the specific task, image content,
observer characteristics, and viewing conditions.
30
References
[1] S. Shenbagavadivu, Dr. M. Renuka Devi, “AN INVESTICATION OF NOISE
REMOVING TECHNIQUS USED IN SPATIAL DOMAIN IMAGE PROCESSING”,
International Journal of Computer Science and Mobile Computing, Vol. 2,
Issue. 7, July 2013, pg.378 – 384
[2] Aditya Goyal, Akhilesh Bijalwan, Mr. Kuntal Chowdhury, “A Comprehensive
Review of Image Smoothing Techniques”, International Journal of
Advanced Research in Computer Engineering & Technology Volume 1,
Issue 4, June 2012
[3] http://homepages.inf.ed.ac.uk/rbf/HIPR2/mean.htm
[4] http://www.nptel.ac.in/courses/117104069/chapter_8/8_16.html
[5] http://www.markschulze.net/java/meanmed.html
[6] www.cse.unr.edu/~bebis/CS474/Lectures/FrequencyFiltering
[7] staffweb.ncnu.edu.tw/jcliu/course/dip2006/freq_intro
[8] www.csie.ntnu.edu.tw/~violet/IP93/Chapter04
[9] http://paulbourke.net/miscellaneous/imagefilter
[10] Rafael C Gonzalez, “Digital Image Processing”, Pearson Education India,
2009, ISBN no. 8131726959, 9788131726952 31
32

More Related Content

What's hot (20)

PDF
Edge linking in image processing
VARUN KUMAR
 
PPTX
Region based segmentation
Imran Hossain
 
PPTX
digital image processing
Abinaya B
 
PPTX
Image restoration and degradation model
AnupriyaDurai
 
PDF
Noise Models
Sardar Alam
 
PPT
Interpixel redundancy
Naveen Kumar
 
PPTX
Fundamental steps in image processing
PremaPRC211300301103
 
PPTX
Digital Image Processing
lalithambiga kamaraj
 
PPTX
Image Sampling and Quantization.pptx
RUBIN (A) JEBIN
 
PDF
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
PPTX
Edge Detection using Hough Transform
Mrunal Selokar
 
PPT
Huffman Coding
anithabalaprabhu
 
PPTX
Homomorphic filtering
Gautam Saxena
 
PPTX
Simultaneous Smoothing and Sharpening of Color Images
Cristina Pérez Benito
 
PPSX
Color Image Processing: Basics
Dr. A. B. Shinde
 
PPT
Arithmetic coding
Vikas Goyal
 
PPTX
Image Enhancement using Frequency Domain Filters
Karthika Ramachandran
 
PPTX
Introduction to Image Compression
Kalyan Acharjya
 
PPTX
Chapter 9 morphological image processing
Ahmed Daoud
 
Edge linking in image processing
VARUN KUMAR
 
Region based segmentation
Imran Hossain
 
digital image processing
Abinaya B
 
Image restoration and degradation model
AnupriyaDurai
 
Noise Models
Sardar Alam
 
Interpixel redundancy
Naveen Kumar
 
Fundamental steps in image processing
PremaPRC211300301103
 
Digital Image Processing
lalithambiga kamaraj
 
Image Sampling and Quantization.pptx
RUBIN (A) JEBIN
 
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
Edge Detection using Hough Transform
Mrunal Selokar
 
Huffman Coding
anithabalaprabhu
 
Homomorphic filtering
Gautam Saxena
 
Simultaneous Smoothing and Sharpening of Color Images
Cristina Pérez Benito
 
Color Image Processing: Basics
Dr. A. B. Shinde
 
Arithmetic coding
Vikas Goyal
 
Image Enhancement using Frequency Domain Filters
Karthika Ramachandran
 
Introduction to Image Compression
Kalyan Acharjya
 
Chapter 9 morphological image processing
Ahmed Daoud
 

Similar to Smoothing in Digital Image Processing (20)

PPTX
Noise filtering
Alaa Ahmed
 
PPT
unit-3.ppt
meenalshanmuganathan
 
PPTX
Module 31
UllasSS1
 
PPT
smoothing filters gaussion and median filters comparing.ppt
ِِِAhmed R. A. Shamsan
 
PDF
Lecture 4
Wael Sharba
 
PPSX
Image Processing: Spatial filters
Dr. A. B. Shinde
 
PPTX
Image Restoration ppt unit III for III years.pptx
S.A Engineering College
 
PPTX
Image_filtering (1).pptx
wdwd10
 
PDF
Image processing, Noise, Noise Removal filters
Kuppusamy P
 
PPTX
Spatial operation.ppt
Bhanubhakta Poudel
 
PPTX
Computer Vision Btech ECE MOD 1-PART 2.pptx
SankarReghunath1
 
PPTX
NOISE FILTERS IN IMAGE PROCESSING
Animesh Singh Sengar
 
PPTX
Image filtering in Digital image processing
Abinaya B
 
PPTX
Image Restoration and Reconstruction in Digital Image Processing
Sadia Zafar
 
PDF
Lecture 6
Wael Sharba
 
PPTX
DIP -Unit 3 ppt.pptx
1DA20CS085Nithyashre
 
PPTX
SPATIAL FILTERING. FOR UNDERGRADUATE .pptx
satushisammur
 
PPTX
Lec5_AIP [Spatial Filtering] (1).pptxt767686777
HumaKashafKhan
 
PPTX
Lec5_AIP [Spatial Filtering] (1).pptxJJJJJJJJJJJJJJJJJJJJJJJ
HumaKashafKhan
 
PPTX
Unit-2 Image Enhancement and Restoration Techniques.pptx
AmrutaSakhare1
 
Noise filtering
Alaa Ahmed
 
Module 31
UllasSS1
 
smoothing filters gaussion and median filters comparing.ppt
ِِِAhmed R. A. Shamsan
 
Lecture 4
Wael Sharba
 
Image Processing: Spatial filters
Dr. A. B. Shinde
 
Image Restoration ppt unit III for III years.pptx
S.A Engineering College
 
Image_filtering (1).pptx
wdwd10
 
Image processing, Noise, Noise Removal filters
Kuppusamy P
 
Spatial operation.ppt
Bhanubhakta Poudel
 
Computer Vision Btech ECE MOD 1-PART 2.pptx
SankarReghunath1
 
NOISE FILTERS IN IMAGE PROCESSING
Animesh Singh Sengar
 
Image filtering in Digital image processing
Abinaya B
 
Image Restoration and Reconstruction in Digital Image Processing
Sadia Zafar
 
Lecture 6
Wael Sharba
 
DIP -Unit 3 ppt.pptx
1DA20CS085Nithyashre
 
SPATIAL FILTERING. FOR UNDERGRADUATE .pptx
satushisammur
 
Lec5_AIP [Spatial Filtering] (1).pptxt767686777
HumaKashafKhan
 
Lec5_AIP [Spatial Filtering] (1).pptxJJJJJJJJJJJJJJJJJJJJJJJ
HumaKashafKhan
 
Unit-2 Image Enhancement and Restoration Techniques.pptx
AmrutaSakhare1
 
Ad

More from Pallavi Agarwal (10)

PPTX
Secure physical infrastructure
Pallavi Agarwal
 
PPTX
Facial Recognition
Pallavi Agarwal
 
PPTX
Presentation on Software Piracy
Pallavi Agarwal
 
PDF
Technical Review on Different Applications, Challenges and Security in VANET
Pallavi Agarwal
 
PDF
VANET for Security using Cryptography
Pallavi Agarwal
 
PPTX
Introduction of VANET
Pallavi Agarwal
 
PDF
VANET: Trust and Hashing
Pallavi Agarwal
 
PDF
Overview of Trust and Cryptography in VANET
Pallavi Agarwal
 
PDF
Security and Trust Management in VANET
Pallavi Agarwal
 
PDF
Review Paper on VANET
Pallavi Agarwal
 
Secure physical infrastructure
Pallavi Agarwal
 
Facial Recognition
Pallavi Agarwal
 
Presentation on Software Piracy
Pallavi Agarwal
 
Technical Review on Different Applications, Challenges and Security in VANET
Pallavi Agarwal
 
VANET for Security using Cryptography
Pallavi Agarwal
 
Introduction of VANET
Pallavi Agarwal
 
VANET: Trust and Hashing
Pallavi Agarwal
 
Overview of Trust and Cryptography in VANET
Pallavi Agarwal
 
Security and Trust Management in VANET
Pallavi Agarwal
 
Review Paper on VANET
Pallavi Agarwal
 
Ad

Recently uploaded (20)

PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Evaluation and thermal analysis of shell and tube heat exchanger as per requi...
shahveer210504
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
PPTX
Green Building & Energy Conservation ppt
Sagar Sarangi
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Evaluation and thermal analysis of shell and tube heat exchanger as per requi...
shahveer210504
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Day2 B2 Best.pptx
helenjenefa1
 
Green Building & Energy Conservation ppt
Sagar Sarangi
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
Thermal runway and thermal stability.pptx
godow93766
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
MRRS Strength and Durability of Concrete
CivilMythili
 

Smoothing in Digital Image Processing

  • 1. Digital Image Processing • Digital Image Processing denotes the process of digital images with the use of digital computer. • Digital images are contains various types of noises which are reduces the quality of images. Noises can be removed by various enhancement techniques. • Noise is anything in the image that are unwanted or undesired information Examples: – Light fluctuations – Sensor noise – Transmission 1
  • 2. Smoothing • Smoothing is often used to reduce noise within an image. • Image smoothing is a key technology of image enhancement, which can remove noise in images. So, it is a necessary functional module in various image-processing software. • Image smoothing is a method of improving the quality of images. • Smoothing is performed by spatial and frequency filters 2
  • 3. Spatial filtering • Spatial filtering term is the filtering operations that are performed directly on the pixels of an image. The process consists simply of moving the filter mask from point to point in an image. – Smoothing spatial filters – Sharpening spatial filters 3
  • 4. Smoothing Spatial Filters • Smoothing filters are used for noise reduction and blurring operations. • It takes into account the pixels surrounding it in order to make a determination of a more accurate version of this pixel. • By taking neighboring pixels into consideration, extreme “noisy” pixels can be filtered out. • Unfortunately, extreme pixels can also represent original fine details, which can also be lost due to the smoothing process 4
  • 5. Cont… Smoothing spatial filters Linear Nonlinear Mean Weiner Gaussian Min Max Median 5
  • 6. Smoothing Linear Filters • Smoothing linear spatial filter is the average of the pixels contained in the neighborhood of the filter mask. • Averaging filters or low pass filters. – Mean filter – Gaussian filter 6
  • 7. Mean Filter/Box Filter • Mean filtering is simply to replace each pixel value in an image with the mean (`average') value of its neighbors, including itself. • 3×3 normalized box filter: 20 40 10 10 20 20 10 20 30 20 40 10 10 20 20 10 20 30 7
  • 8. Cont… • Image smoothed with 33, 55, 99 and 11 11 box filters 8
  • 9. Cont… • Often a 3×3 square matrix is used, although larger matrix (e.g. 5×5 squares) can be used for more severe smoothing. • Drawback: – smoothing reduces fine image detail 9
  • 10. Gaussian Filter • A Gaussian filters smoothens an image by calculating weighted averages in a filter box. • It is used to `blur' images and remove detail and noise. • Gives more weight at the central pixels and less weights to the neighbors. • The farther away the neighbors, the smaller the weight. • Gaussian Blurs produce a very pure smoothing effect without side effects. 10
  • 12. Smoothing Non Linear Filters • Nonlinear spatial filters are Order-statistics filters whose response is based on ordering (ranking) the pixels contained in the image area encompassed by the filter, and then replacing the value of the center pixel with the value determined by the ranking result. – Min and Max Filter – Median Filter – Midpoint Filter 12
  • 13. Min and Max Filter • The minimum filter selects the smallest value within the pixel values and maximum filter selects the largest value within of pixel values. • Max filter is useful for finding the brightest points in an image i.e. it removes salt noise. • Min filter is useful for finding the darkest points in an image i.e. it removes pepper noise. • Both filters require a data sort. 13
  • 14. Median Filter • It smooth a few pixels whose values differ significantly from their surroundings without affecting the other pixels. • Best suited for “salt and pepper” noise • Salt-and pepper noise can occur due to a random bit error in a communication channel 14
  • 15. Comparison Of Median And Box Filter Noisy image 5x5 median filtered 5x5 box filter 15
  • 16. Midpoint Filter • The Midpoint filter blurs the image by replacing each pixel with the average of the highest pixel and the lowest pixel (with respect to intensity) within the specified window size. • Midpoint = (darkest + lightest)/2 16
  • 17. Frequency filtering • The basic model for filtering in the frequency domain where F(u,v): the Fourier transform of the image to be smoothed H(u,v): a filter transfer function • Smoothing is fundamentally a low pass operation in the frequency domain. • It is computationally faster than spatial domain. 17
  • 19. Major filter categories • Typically, filters are classified by examining their properties in the frequency domain: (1) Low-pass for smoothing (2) High-pass for sharpening (3) Band-pass (4) Band-stop 19
  • 20. Example 20 Original signal Low-pass filtered High-pass filtered Band-pass filtered Band-stop filtered
  • 21. Cont… • There are several standard forms of low pass filters (LPF). – Ideal low pass filter – Butterworth low pass filter – Gaussian low pass filter 21
  • 22. Ideal Low pass Filters (ILPFs) • The simplest low pass filter is a filter that “cuts off” all high-frequency components of the Fourier transform that are at a distance greater than a specified distance D0 from the origin of the transform. • The transfer function of an ideal low pass filter where D(u,v) : the distance from point (u,v) to the center of their frequency rectangle 22       ),(if0 ),(if1 ),( 0 0 DvuD DvuD vuH  2 1 22 )2/()2/(),( NvMuvuD 
  • 24. 24
  • 25.   n DvuD vuH 2 0/),(1 1 ),(   Butterworth Low pass Filters (BLPFs) 25
  • 26. Butterworth Low pass Filters (BLPFs) n=2 D0=5,15,30,80,and 230 26
  • 27. n=1 n=2 n=5 n=20 27
  • 28. 2 0 2 2/),( ),( DvuD evuH   Gaussian Lowpass Filters (FLPFs) 28
  • 29. Gaussian Low pass Filters (FLPFs) D0=5,15,30,80,and 230 29
  • 30. Conclusion • Image smoothing algorithms offer a wide variety of approaches for modifying images to achieve visually acceptable images. The choice of such techniques is a function of the specific task, image content, observer characteristics, and viewing conditions. 30
  • 31. References [1] S. Shenbagavadivu, Dr. M. Renuka Devi, “AN INVESTICATION OF NOISE REMOVING TECHNIQUS USED IN SPATIAL DOMAIN IMAGE PROCESSING”, International Journal of Computer Science and Mobile Computing, Vol. 2, Issue. 7, July 2013, pg.378 – 384 [2] Aditya Goyal, Akhilesh Bijalwan, Mr. Kuntal Chowdhury, “A Comprehensive Review of Image Smoothing Techniques”, International Journal of Advanced Research in Computer Engineering & Technology Volume 1, Issue 4, June 2012 [3] http://homepages.inf.ed.ac.uk/rbf/HIPR2/mean.htm [4] http://www.nptel.ac.in/courses/117104069/chapter_8/8_16.html [5] http://www.markschulze.net/java/meanmed.html [6] www.cse.unr.edu/~bebis/CS474/Lectures/FrequencyFiltering [7] staffweb.ncnu.edu.tw/jcliu/course/dip2006/freq_intro [8] www.csie.ntnu.edu.tw/~violet/IP93/Chapter04 [9] http://paulbourke.net/miscellaneous/imagefilter [10] Rafael C Gonzalez, “Digital Image Processing”, Pearson Education India, 2009, ISBN no. 8131726959, 9788131726952 31
  • 32. 32