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

Noise Models
Noise ModelsNoise Models
Noise ModelsSardar Alam
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Kalyan Acharjya
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filteringGautam Saxena
 
Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compressionjeevithaelangovan
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainMadhu Bala
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processingAnuj Arora
 
Data Redundacy
Data RedundacyData Redundacy
Data RedundacyPoonam Seth
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIPbabak danyal
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transformKrish Everglades
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsasodariyabhavesh
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation modelAnupriyaDurai
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
 
Noise filtering
Noise filteringNoise filtering
Noise filteringAlaa Ahmed
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingAmna
 
image compression ppt
image compression pptimage compression ppt
image compression pptShivangi Saxena
 

What's hot (20)

Noise Models
Noise ModelsNoise Models
Noise Models
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compression
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Noise filtering
Noise filteringNoise filtering
Noise filtering
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image Processing
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 

Similar to filters for noise in image processing

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 FiltersIRJET Journal
 
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 NoiseIRJET Journal
 
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 FilteringIRJET Journal
 
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...IRJET Journal
 
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
 
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 ImagesIRJET Journal
 
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 imagesijbbjournal
 
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 SchemesIRJET Journal
 
Mo2521632166
Mo2521632166Mo2521632166
Mo2521632166IJERA Editor
 
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 Filterijtsrd
 
Noise Models
Noise ModelsNoise Models
Noise ModelsSardar Alam
 
Adaptive denoising technique for colour images
Adaptive denoising technique for colour imagesAdaptive denoising technique for colour images
Adaptive denoising technique for colour imageseSAT Journals
 
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 ...sipij
 
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...sipij
 
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...IDES Editor
 
Lr2419551959
Lr2419551959Lr2419551959
Lr2419551959IJERA Editor
 

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

Undoing of mental illness -- seek help
Undoing of mental illness -- seek helpUndoing of mental illness -- seek help
Undoing of mental illness -- seek helpSardar Alam
 
introduction to python
introduction to pythonintroduction to python
introduction to pythonSardar Alam
 
Operator Overloading
Operator Overloading  Operator Overloading
Operator Overloading Sardar Alam
 
skin disease classification
skin disease classificationskin disease classification
skin disease classificationSardar Alam
 
Introduction to machine learningunsupervised learning
Introduction to machine learningunsupervised learningIntroduction to machine learningunsupervised learning
Introduction to machine learningunsupervised learningSardar Alam
 
Opengl texturing
Opengl texturingOpengl texturing
Opengl texturingSardar Alam
 
Mathematics fundamentals
Mathematics fundamentalsMathematics fundamentals
Mathematics fundamentalsSardar Alam
 
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 2Sardar Alam
 
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 1Sardar Alam
 
3 d graphics basics
3 d graphics basics3 d graphics basics
3 d graphics basicsSardar Alam
 
2 d transformations
2 d transformations2 d transformations
2 d transformationsSardar Alam
 
Inheritance
InheritanceInheritance
InheritanceSardar Alam
 
Arrays string handling java packages
Arrays string handling java packagesArrays string handling java packages
Arrays string handling java packagesSardar Alam
 
Java basics
Java basicsJava basics
Java basicsSardar 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

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
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...ICS
 
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 ApplicationsAlberto González Trastoy
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 

Recently uploaded (20)

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
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...
 
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
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 

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