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

Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationMostafa G. M. Mostafa
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image ProcessingPallavi Agarwal
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filterarulraj121
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Kalyan Acharjya
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsA B Shinde
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformationsJohn Williams
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processingkiruthiammu
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSING
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSINGHIGH PASS FILTER IN DIGITAL IMAGE PROCESSING
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSINGBimal2354
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 

What's hot (20)

Noise Models
Noise ModelsNoise Models
Noise Models
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Module 31
Module 31Module 31
Module 31
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Spatial operation.ppt
Spatial operation.pptSpatial operation.ppt
Spatial operation.ppt
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSING
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSINGHIGH PASS FILTER IN DIGITAL IMAGE PROCESSING
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSING
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 

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
 
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
 
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
 

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
 
Arrays string handling java packages
Arrays string handling java packagesArrays string handling java packages
Arrays string handling java packagesSardar 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

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..pdfPearlKirahMaeRagusta1
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
%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 Bahrainmasabamasaba
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
%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 Stilfonteinmasabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
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...panagenda
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 

Recently uploaded (20)

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
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%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
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%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
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
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...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 

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