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

PDF
Digital Image Processing - Image Restoration
PPT
Image enhancement
PPTX
Criterion 10.pptx
PPTX
Image Enhancement in Spatial Domain
PPTX
Histogram Equalization
PPTX
Histogram Processing
PPTX
LCD Interacing with 8051
Digital Image Processing - Image Restoration
Image enhancement
Criterion 10.pptx
Image Enhancement in Spatial Domain
Histogram Equalization
Histogram Processing
LCD Interacing with 8051

What's hot (20)

PDF
Noise Models
PPTX
Chapter 9 morphological image processing
PPTX
Image Filtering in the Frequency Domain
PPTX
Image Enhancement using Frequency Domain Filters
PPT
Wavelet transform in image compression
PPT
Thresholding.ppt
PPTX
Image feature extraction
ODP
image compression ppt
PDF
Digital Image Processing: Image Segmentation
PPTX
Noise
PDF
Digital Image Fundamentals
PPTX
Unit3 dip
PPTX
SPATIAL FILTERING IN IMAGE PROCESSING
PPTX
digital image processing
PPTX
Smoothing Filters in Spatial Domain
PPTX
Homomorphic filtering
PPTX
Introduction to Image Compression
PPSX
Image Enhancement in Spatial Domain
PPTX
Simultaneous Smoothing and Sharpening of Color Images
Noise Models
Chapter 9 morphological image processing
Image Filtering in the Frequency Domain
Image Enhancement using Frequency Domain Filters
Wavelet transform in image compression
Thresholding.ppt
Image feature extraction
image compression ppt
Digital Image Processing: Image Segmentation
Noise
Digital Image Fundamentals
Unit3 dip
SPATIAL FILTERING IN IMAGE PROCESSING
digital image processing
Smoothing Filters in Spatial Domain
Homomorphic filtering
Introduction to Image Compression
Image Enhancement in Spatial Domain
Simultaneous Smoothing and Sharpening of Color Images
Ad

Similar to Smoothing in Digital Image Processing (20)

PPTX
Noise filtering
PPT
PPTX
Module 31
PPT
smoothing filters gaussion and median filters comparing.ppt
PDF
Lecture 4
PPSX
Image Processing: Spatial filters
PPTX
Image Restoration ppt unit III for III years.pptx
PPTX
Image_filtering (1).pptx
PDF
Image processing, Noise, Noise Removal filters
PPTX
Spatial operation.ppt
PPTX
Computer Vision Btech ECE MOD 1-PART 2.pptx
PPTX
NOISE FILTERS IN IMAGE PROCESSING
PPTX
Image filtering in Digital image processing
PPTX
Image Restoration and Reconstruction in Digital Image Processing
PDF
Lecture 6
PPTX
DIP -Unit 3 ppt.pptx
PPTX
SPATIAL FILTERING. FOR UNDERGRADUATE .pptx
PPTX
Lec5_AIP [Spatial Filtering] (1).pptxJJJJJJJJJJJJJJJJJJJJJJJ
PPTX
Lec5_AIP [Spatial Filtering] (1).pptxt767686777
PPTX
Unit-2 Image Enhancement and Restoration Techniques.pptx
Noise filtering
Module 31
smoothing filters gaussion and median filters comparing.ppt
Lecture 4
Image Processing: Spatial filters
Image Restoration ppt unit III for III years.pptx
Image_filtering (1).pptx
Image processing, Noise, Noise Removal filters
Spatial operation.ppt
Computer Vision Btech ECE MOD 1-PART 2.pptx
NOISE FILTERS IN IMAGE PROCESSING
Image filtering in Digital image processing
Image Restoration and Reconstruction in Digital Image Processing
Lecture 6
DIP -Unit 3 ppt.pptx
SPATIAL FILTERING. FOR UNDERGRADUATE .pptx
Lec5_AIP [Spatial Filtering] (1).pptxJJJJJJJJJJJJJJJJJJJJJJJ
Lec5_AIP [Spatial Filtering] (1).pptxt767686777
Unit-2 Image Enhancement and Restoration Techniques.pptx
Ad

More from Pallavi Agarwal (10)

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

Recently uploaded (20)

PPTX
AgentX UiPath Community Webinar series - Delhi
PPTX
Road Safety tips for School Kids by a k maurya.pptx
PDF
composite construction of structures.pdf
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPT
Chapter 6 Design in software Engineeing.ppt
PPTX
web development for engineering and engineering
PDF
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
AgentX UiPath Community Webinar series - Delhi
Road Safety tips for School Kids by a k maurya.pptx
composite construction of structures.pdf
Strings in CPP - Strings in C++ are sequences of characters used to store and...
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
bas. eng. economics group 4 presentation 1.pptx
Chapter 6 Design in software Engineeing.ppt
web development for engineering and engineering
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Structs to JSON How Go Powers REST APIs.pdf
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
Arduino robotics embedded978-1-4302-3184-4.pdf
Lesson 3_Tessellation.pptx finite Mathematics

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