SlideShare ist ein Scribd-Unternehmen logo
1 von 32
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

Weitere ähnliche Inhalte

Was ist angesagt?

Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
Diwaker Pant
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
Gichelle Amon
 

Was ist angesagt? (20)

Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
5. gray level transformation
5. gray level transformation5. gray level transformation
5. gray level transformation
 
Discrete cosine transform
Discrete cosine transform   Discrete cosine transform
Discrete cosine transform
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
Noise Models
Noise ModelsNoise Models
Noise Models
 
Image compression models
Image compression modelsImage compression models
Image compression models
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Point processing
Point processingPoint processing
Point processing
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Wiener Filter
Wiener FilterWiener Filter
Wiener Filter
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 

Ähnlich wie Smoothing in Digital Image Processing

Noise filtering
Noise filteringNoise filtering
Noise filtering
Alaa Ahmed
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
1DA20CS085Nithyashre
 
Iaetsd literature review on efficient detection and filtering of high
Iaetsd literature review on efficient detection and filtering of highIaetsd literature review on efficient detection and filtering of high
Iaetsd literature review on efficient detection and filtering of high
Iaetsd Iaetsd
 
noiseestimationfiltering-221217050348-c5d1a246.pdf
noiseestimationfiltering-221217050348-c5d1a246.pdfnoiseestimationfiltering-221217050348-c5d1a246.pdf
noiseestimationfiltering-221217050348-c5d1a246.pdf
AmrilMukmin2
 

Ähnlich wie Smoothing in Digital Image Processing (20)

Noise filtering
Noise filteringNoise filtering
Noise filtering
 
unit-3.ppt
unit-3.pptunit-3.ppt
unit-3.ppt
 
Module 31
Module 31Module 31
Module 31
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptx
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
Spatial operation.ppt
Spatial operation.pptSpatial operation.ppt
Spatial operation.ppt
 
NOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSINGNOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSING
 
Image Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingImage Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image Processing
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
 
Iaetsd literature review on efficient detection and filtering of high
Iaetsd literature review on efficient detection and filtering of highIaetsd literature review on efficient detection and filtering of high
Iaetsd literature review on efficient detection and filtering of high
 
Noise
NoiseNoise
Noise
 
Spatial Domain Filtering.pdf
Spatial Domain Filtering.pdfSpatial Domain Filtering.pdf
Spatial Domain Filtering.pdf
 
Image Noise Removal by Dual Threshold Median Filter for RVIN
Image Noise Removal by Dual Threshold Median Filter for RVINImage Noise Removal by Dual Threshold Median Filter for RVIN
Image Noise Removal by Dual Threshold Median Filter for RVIN
 
M017218088
M017218088M017218088
M017218088
 
Noise Estimation & Filtering_.pptx
Noise Estimation  & Filtering_.pptxNoise Estimation  & Filtering_.pptx
Noise Estimation & Filtering_.pptx
 
noiseestimationfiltering-221217050348-c5d1a246.pdf
noiseestimationfiltering-221217050348-c5d1a246.pdfnoiseestimationfiltering-221217050348-c5d1a246.pdf
noiseestimationfiltering-221217050348-c5d1a246.pdf
 
Image denoising
Image denoisingImage denoising
Image denoising
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 

Mehr von Pallavi Agarwal

VANET for Security using Cryptography
VANET for Security using Cryptography VANET for Security using Cryptography
VANET for Security using Cryptography
Pallavi Agarwal
 

Mehr von Pallavi Agarwal (10)

Secure physical infrastructure
Secure physical infrastructureSecure physical infrastructure
Secure physical infrastructure
 
Facial Recognition
Facial RecognitionFacial Recognition
Facial Recognition
 
Presentation on Software Piracy
Presentation on Software PiracyPresentation on Software Piracy
Presentation on Software Piracy
 
Technical Review on Different Applications, Challenges and Security in VANET
Technical Review on Different Applications, Challenges and Security in VANETTechnical Review on Different Applications, Challenges and Security in VANET
Technical Review on Different Applications, Challenges and Security in VANET
 
VANET for Security using Cryptography
VANET for Security using Cryptography VANET for Security using Cryptography
VANET for Security using Cryptography
 
Introduction of VANET
Introduction of VANETIntroduction of VANET
Introduction of VANET
 
VANET: Trust and Hashing
VANET: Trust and HashingVANET: Trust and Hashing
VANET: Trust and Hashing
 
Overview of Trust and Cryptography in VANET
Overview of Trust and Cryptography in VANET Overview of Trust and Cryptography in VANET
Overview of Trust and Cryptography in VANET
 
Security and Trust Management in VANET
Security and Trust Management in VANETSecurity and Trust Management in VANET
Security and Trust Management in VANET
 
Review Paper on VANET
Review Paper on VANETReview Paper on VANET
Review Paper on VANET
 

Kürzlich hochgeladen

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 

Kürzlich hochgeladen (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 

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