SlideShare a Scribd company logo
1 of 30
Download to read offline
Restoration of noise-only degradation 
Filters to be considered 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 1
Mean Filters: Arithmetic mean filter 
Causes a certain amount of blurring (proportional to the window size) to 
the image, thereby reducing the effects of noise. 
Can be used to reduce noise of different types, but works best for Gaussian, 
uniform, or Erlang noise. 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 2
Mean Filters: Geometric mean filter 
– A variation of the arithmetic mean filter 
– Primarily used on images with Gaussian noise 
– Retains image detail better than the arithmetic mean 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 3
Mean Filters: Harmonic mean filter 
Harmonic mean filter 
– Another variation of the arithmetic mean filter 
– Useful for images with Gaussian or salt noise 
– Black pixels (pepper noise) are not filtered 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 4
Arithmetic and geometric mean filters (example) 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 5
Mean Filters: Harmonic mean filter 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 6
Mean Filters: Harmonic mean filter 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 7
Mean Filters: Contra-harmonic mean filter 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 8
Classification of contra-harmonic filter applications 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 9
Contra-harmonic mean filter (example) 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 10
Contra-harmonic mean filter (example) 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 11
Rank / Order / Order Statistics Filters 
– Known as Rank filters, Order filters OR Order Statistics filters 
– Operate on a neighborhood around a reference pixel by 
ordering (ranking) the pixel values and then performing an 
operation on those ordered values to obtain the new value for 
the reference pixel 
– They perform very well in the presence of salt and pepper noise 
but are more computationally expensive as compared to mean 
filters 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 12
Rank / Order Statistics Filters: Median filter 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 13
Rank / Order Statistics Filters: Median filter 
– Most popular and useful of the rank filters. 
– It works by selecting the middle pixel value from the ordered set 
of values within the m × n neighborhood (W) around the 
reference pixel. 
• If mn is an even number, the arithmetic average of the two 
values closest to the middle of the ordered set is used 
instead. 
– Many variants, extensions, and optimized implementations in 
the literature. 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 14
Median filter (Example) 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 15
Rank / Order Statistics Filters: Max and Min filter 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 16
Rank / Order Statistics Filters: Max and Min filter 
– Max filter also known as 100th percentile filter 
– Min filter also known as zeroth percentile filter 
– Max filter helps in removing pepper noise 
– Min filter helps in removing salt noise 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 17
Max and Min filter (Example) 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 18
Rank / Order Statistics Filters: Midpoint filter 
– Calculates the average of the highest and lowest pixel values 
within a window 
– What would it do with salt and pepper noise ? 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 19
Midpoint filter (Example) 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 20
Rank/Order Statistics Filters: Alpha-Trimmed Mean Filter 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 21
Rank/Order Statistics Filters: Alpha-Trimmed Mean Filter 
– Uses another combination of order statistics and 
averaging 
– Average of the pixel values closest to the median, after 
the D lowest and the D highest values in an ordered 
set have been excluded. 
– Rationale: to allow the user to control its behavior by 
specifying the parameter D 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 22
Alpha-Trimmed Mean Filter (Example) 
Image corrupted 
by additive 
uniform noise 
Additionally 
corrupted by 
additive salt and 
pepper noise 
Filtered with 5x5 
arithmetic mean 
filter 
Filtered with 5x5 
geometric mean 
filter 
Filtered with 5x5 
median filter 
Filtered with 5x5 
alpha-trimmed 
mean filter (d=5) 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 23
Filters in MATLAB 
– nlfilter or colfilt 
– Might take long to process results 
– Both provide a progress bar indicator to inform to the user that 
the processing is taking place 
– colfilt is considerably faster than nlfilter 
– For rank filters, the IPT function ordfilt2 to create the min, max, 
and median filters 
– medfilt2 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 24
Adaptive Filters 
 The behavior of adaptive filters changes according to the statistical 
characteristics of the image in the filter region. 
 This will enable the filters to have the desired response even if the 
image has regions with totally different characteristics. 
 Statistical characteristics considered : Local mean, local variance, 
local maximum, local minimum, local median, global mean, global 
variance and noise variance. 
 Performance of Adaptive filters is superior to that of the filters 
discussed till now but the price is increase in filter complexity 
 We will study two adaptive filters: 
– Adaptive local noise reduction filter 
– Adaptive median filter 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 25
Adaptive local noise reduction filter 
– Filter operates on local region, Sxy 
– The response of the filter at any point (x,y) is based on four 
quantities 
• g(x,y), the value of the noisy image at (x,y) 
• , the variance of the noise which corrupts f(x,y) to form g(x,y) (?) 
• , the local mean of the pixels in Sxy 
• , the local variance of the pixels in Sxy L 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 26
Adaptive local noise reduction filter 
L 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 27
Adaptive local noise reduction filter (Example) 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 28
Adaptive median filter 
Suppose zmin and zmax = min. and max. gray level value in Sxy 
zmed = median of gray levels in Sxy 
zxy = gray level at coordinates (x, y) 
Smax = maximum allowed size of Sxy 
Algorithm Level A: 
A1  zmed  zmin , A2  zmed  zmax 
If A1 > 0 AND A2 <0, Go to level B 
Else increase the window size 
If window size ≤ Smax repeat level A 
Else output zmed 
Level B: 
1 , 2 xy min xy max B  z  z B  z  z 
If B1 > 0 AND B2 <0, output zxy 
Else output zmed 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 29
Adaptive median filter 
 Suitable for higher level of salt and pepper noise 
 Minimum loss of information 
Example 
5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 30

More Related Content

What's hot

Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
Ashish Kumar
 

What's hot (20)

Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filter
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Unit ii
Unit iiUnit ii
Unit ii
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Module 31
Module 31Module 31
Module 31
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 

Similar to filters for noise in image processing

Noise reduction by fuzzy image filtering(synopsis)
Noise reduction by fuzzy image filtering(synopsis)Noise reduction by fuzzy image filtering(synopsis)
Noise reduction by fuzzy image filtering(synopsis)
Mumbai Academisc
 
Novel adaptive filter (naf) for impulse noise suppression from digital images
Novel adaptive filter (naf) for impulse noise suppression from digital imagesNovel adaptive filter (naf) for impulse noise suppression from digital images
Novel adaptive filter (naf) for impulse noise suppression from digital images
ijbbjournal
 
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median FilterAnalysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
ijtsrd
 

Similar to filters for noise in image processing (20)

D122733
D122733D122733
D122733
 
IRJET- Salt and Pepper Noise Removal using Decision based Filters
IRJET- Salt and Pepper Noise Removal using Decision based FiltersIRJET- Salt and Pepper Noise Removal using Decision based Filters
IRJET- Salt and Pepper Noise Removal using Decision based Filters
 
FPGA Implementation of Decision Based Algorithm for Removal of Impulse Noise
FPGA Implementation of Decision Based Algorithm for Removal of Impulse NoiseFPGA Implementation of Decision Based Algorithm for Removal of Impulse Noise
FPGA Implementation of Decision Based Algorithm for Removal of Impulse Noise
 
IRJET- Image Restoration using Adaptive Median Filtering
IRJET- Image Restoration using Adaptive Median FilteringIRJET- Image Restoration using Adaptive Median Filtering
IRJET- Image Restoration using Adaptive Median Filtering
 
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET -  	  Change Detection in Satellite Images using Convolutional Neural N...IRJET -  	  Change Detection in Satellite Images using Convolutional Neural N...
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
 
Noise reduction by fuzzy image filtering(synopsis)
Noise reduction by fuzzy image filtering(synopsis)Noise reduction by fuzzy image filtering(synopsis)
Noise reduction by fuzzy image filtering(synopsis)
 
I010324954
I010324954I010324954
I010324954
 
IRJET- SEPD Technique for Removal of Salt and Pepper Noise in Digital Images
IRJET- SEPD Technique for Removal of Salt and Pepper Noise in Digital ImagesIRJET- SEPD Technique for Removal of Salt and Pepper Noise in Digital Images
IRJET- SEPD Technique for Removal of Salt and Pepper Noise in Digital Images
 
Novel adaptive filter (naf) for impulse noise suppression from digital images
Novel adaptive filter (naf) for impulse noise suppression from digital imagesNovel adaptive filter (naf) for impulse noise suppression from digital images
Novel adaptive filter (naf) for impulse noise suppression from digital images
 
IRJET- Random Valued Impulse Noise Detection Schemes
IRJET- Random Valued Impulse Noise Detection SchemesIRJET- Random Valued Impulse Noise Detection Schemes
IRJET- Random Valued Impulse Noise Detection Schemes
 
ppt hari
ppt harippt hari
ppt hari
 
Mo2521632166
Mo2521632166Mo2521632166
Mo2521632166
 
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median FilterAnalysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
 
Noise Models
Noise ModelsNoise Models
Noise Models
 
Adaptive denoising technique for colour images
Adaptive denoising technique for colour imagesAdaptive denoising technique for colour images
Adaptive denoising technique for colour images
 
Image Filtering Using all Neighbor Directional Weighted Pixels: Optimization ...
Image Filtering Using all Neighbor Directional Weighted Pixels: Optimization ...Image Filtering Using all Neighbor Directional Weighted Pixels: Optimization ...
Image Filtering Using all Neighbor Directional Weighted Pixels: Optimization ...
 
A HYBRID FILTERING TECHNIQUE FOR ELIMINATING UNIFORM NOISE AND IMPULSE NOIS...
A HYBRID FILTERING TECHNIQUE FOR  ELIMINATING UNIFORM NOISE AND IMPULSE  NOIS...A HYBRID FILTERING TECHNIQUE FOR  ELIMINATING UNIFORM NOISE AND IMPULSE  NOIS...
A HYBRID FILTERING TECHNIQUE FOR ELIMINATING UNIFORM NOISE AND IMPULSE NOIS...
 
50120130406029
5012013040602950120130406029
50120130406029
 
A Hybrid Filtering Technique for Random Valued Impulse Noise Elimination on D...
A Hybrid Filtering Technique for Random Valued Impulse Noise Elimination on D...A Hybrid Filtering Technique for Random Valued Impulse Noise Elimination on D...
A Hybrid Filtering Technique for Random Valued Impulse Noise Elimination on D...
 
Lr2419551959
Lr2419551959Lr2419551959
Lr2419551959
 

More from Sardar Alam

More from Sardar Alam (15)

Undoing of mental illness -- seek help
Undoing of mental illness -- seek helpUndoing of mental illness -- seek help
Undoing of mental illness -- seek help
 
introduction to python
introduction to pythonintroduction to python
introduction to python
 
Operator Overloading
Operator Overloading  Operator Overloading
Operator Overloading
 
skin disease classification
skin disease classificationskin disease classification
skin disease classification
 
Introduction to machine learningunsupervised learning
Introduction to machine learningunsupervised learningIntroduction to machine learningunsupervised learning
Introduction to machine learningunsupervised learning
 
Opengl texturing
Opengl texturingOpengl texturing
Opengl texturing
 
Mathematics fundamentals
Mathematics fundamentalsMathematics fundamentals
Mathematics fundamentals
 
3 d graphics with opengl part 2
3 d graphics with opengl  part 23 d graphics with opengl  part 2
3 d graphics with opengl part 2
 
3 d graphics with opengl part 1
3 d graphics with opengl part 13 d graphics with opengl part 1
3 d graphics with opengl part 1
 
3 d graphics basics
3 d graphics basics3 d graphics basics
3 d graphics basics
 
2 d transformations
2 d transformations2 d transformations
2 d transformations
 
Gui
GuiGui
Gui
 
Inheritance
InheritanceInheritance
Inheritance
 
Arrays string handling java packages
Arrays string handling java packagesArrays string handling java packages
Arrays string handling java packages
 
Java basics
Java basicsJava basics
Java basics
 

Recently uploaded

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

filters for noise in image processing

  • 1. Restoration of noise-only degradation Filters to be considered 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 1
  • 2. Mean Filters: Arithmetic mean filter Causes a certain amount of blurring (proportional to the window size) to the image, thereby reducing the effects of noise. Can be used to reduce noise of different types, but works best for Gaussian, uniform, or Erlang noise. 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 2
  • 3. Mean Filters: Geometric mean filter – A variation of the arithmetic mean filter – Primarily used on images with Gaussian noise – Retains image detail better than the arithmetic mean 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 3
  • 4. Mean Filters: Harmonic mean filter Harmonic mean filter – Another variation of the arithmetic mean filter – Useful for images with Gaussian or salt noise – Black pixels (pepper noise) are not filtered 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 4
  • 5. Arithmetic and geometric mean filters (example) 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 5
  • 6. Mean Filters: Harmonic mean filter 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 6
  • 7. Mean Filters: Harmonic mean filter 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 7
  • 8. Mean Filters: Contra-harmonic mean filter 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 8
  • 9. Classification of contra-harmonic filter applications 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 9
  • 10. Contra-harmonic mean filter (example) 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 10
  • 11. Contra-harmonic mean filter (example) 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 11
  • 12. Rank / Order / Order Statistics Filters – Known as Rank filters, Order filters OR Order Statistics filters – Operate on a neighborhood around a reference pixel by ordering (ranking) the pixel values and then performing an operation on those ordered values to obtain the new value for the reference pixel – They perform very well in the presence of salt and pepper noise but are more computationally expensive as compared to mean filters 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 12
  • 13. Rank / Order Statistics Filters: Median filter 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 13
  • 14. Rank / Order Statistics Filters: Median filter – Most popular and useful of the rank filters. – It works by selecting the middle pixel value from the ordered set of values within the m × n neighborhood (W) around the reference pixel. • If mn is an even number, the arithmetic average of the two values closest to the middle of the ordered set is used instead. – Many variants, extensions, and optimized implementations in the literature. 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 14
  • 15. Median filter (Example) 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 15
  • 16. Rank / Order Statistics Filters: Max and Min filter 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 16
  • 17. Rank / Order Statistics Filters: Max and Min filter – Max filter also known as 100th percentile filter – Min filter also known as zeroth percentile filter – Max filter helps in removing pepper noise – Min filter helps in removing salt noise 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 17
  • 18. Max and Min filter (Example) 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 18
  • 19. Rank / Order Statistics Filters: Midpoint filter – Calculates the average of the highest and lowest pixel values within a window – What would it do with salt and pepper noise ? 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 19
  • 20. Midpoint filter (Example) 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 20
  • 21. Rank/Order Statistics Filters: Alpha-Trimmed Mean Filter 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 21
  • 22. Rank/Order Statistics Filters: Alpha-Trimmed Mean Filter – Uses another combination of order statistics and averaging – Average of the pixel values closest to the median, after the D lowest and the D highest values in an ordered set have been excluded. – Rationale: to allow the user to control its behavior by specifying the parameter D 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 22
  • 23. Alpha-Trimmed Mean Filter (Example) Image corrupted by additive uniform noise Additionally corrupted by additive salt and pepper noise Filtered with 5x5 arithmetic mean filter Filtered with 5x5 geometric mean filter Filtered with 5x5 median filter Filtered with 5x5 alpha-trimmed mean filter (d=5) 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 23
  • 24. Filters in MATLAB – nlfilter or colfilt – Might take long to process results – Both provide a progress bar indicator to inform to the user that the processing is taking place – colfilt is considerably faster than nlfilter – For rank filters, the IPT function ordfilt2 to create the min, max, and median filters – medfilt2 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 24
  • 25. Adaptive Filters  The behavior of adaptive filters changes according to the statistical characteristics of the image in the filter region.  This will enable the filters to have the desired response even if the image has regions with totally different characteristics.  Statistical characteristics considered : Local mean, local variance, local maximum, local minimum, local median, global mean, global variance and noise variance.  Performance of Adaptive filters is superior to that of the filters discussed till now but the price is increase in filter complexity  We will study two adaptive filters: – Adaptive local noise reduction filter – Adaptive median filter 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 25
  • 26. Adaptive local noise reduction filter – Filter operates on local region, Sxy – The response of the filter at any point (x,y) is based on four quantities • g(x,y), the value of the noisy image at (x,y) • , the variance of the noise which corrupts f(x,y) to form g(x,y) (?) • , the local mean of the pixels in Sxy • , the local variance of the pixels in Sxy L 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 26
  • 27. Adaptive local noise reduction filter L 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 27
  • 28. Adaptive local noise reduction filter (Example) 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 28
  • 29. Adaptive median filter Suppose zmin and zmax = min. and max. gray level value in Sxy zmed = median of gray levels in Sxy zxy = gray level at coordinates (x, y) Smax = maximum allowed size of Sxy Algorithm Level A: A1  zmed  zmin , A2  zmed  zmax If A1 > 0 AND A2 <0, Go to level B Else increase the window size If window size ≤ Smax repeat level A Else output zmed Level B: 1 , 2 xy min xy max B  z  z B  z  z If B1 > 0 AND B2 <0, output zxy Else output zmed 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 29
  • 30. Adaptive median filter  Suitable for higher level of salt and pepper noise  Minimum loss of information Example 5/16/2013 COMSATS Institute of Information Technology, Abbottabad Digital Image Processing CSC330 30