SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 10 | Oct 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 841
Image Restoration using Adaptive Median Filtering
Hetvi Soni[1], Darshana Sankhe[2]
Student[1], Professor[2], Dept. Of Electronics Engineering, D.J Sanghvi College of Engineering, Mumbai, India
----------------------------------------------------------------------***---------------------------------------------------------------------
Abstract – In the field of image processing, image
restoration is the most essential task. Image often gets
corrupted due to which there is presence of noise in the
image. Generally median filter is used to remove the
presence of such noise but median filter works fine for
about intensity of 20% noise in the image. So in order
to get a better image restoration we can use another
image restoration technique which is adaptive median
filtering which works very well for noise intensity
beyond 20% .The benefit of adaptive filter over median
filter is that it does not erode away edges or small
details in the image.
Key Words: Adaptive median filter, Image
Processing, Median filter, Salt and Pepper Noise,
Gaussian Noise PSNR.
1. INTRODUCTION
In the field of image processing image gets corrupted
during image transmission or acquisition stage due
to various influencing parameters such as faulty
device etc. Such type of corruption gives rise to noise
in the image which affects the information present in
the image. The various type of noise that arises in the
image is impulse noise also know as salt and pepper
noise, Gaussian noise, and speckle noise to name a
few [1].
In order to retrieve the original information from the
image and eliminate noise from the image we need to
apply certain de-noising techniques. These de-
noising techniques make use of kernel which is made
to convolve over the image and the result obtain
through this convolution is a noise free image. The
size of kernel (window) used for the same varies and
intended output with same also varies.
One such commonly used technique is median
filtering. Median filtering works fine when the noise
intensity is less but it starts to fail when the noise
intensity in the image is high [3].
In order to overcome this problem we can make of
spatial filtering technique. One such Filtering
algorithm used is adaptive median filter. Adaptive
median filtering is better than median as it is a two
step filtering technique. The main advantage of
adaptive median filter is that the behavior of the
adaptive filter changes depending on the
characteristics of the image under filter. Other main
feature of adaptive filter is that it works well not only
for impulse noise but also for speckle noise and
Gaussian noise [3].
2. MEDIAN FILTER
Median filter is the most commonly used filter. It
is a non linear method of filtering. The size of the
kernel can be of nxn size which is made to convolve
or slide over a mxm corrupted image. While
performing this operation the median value of nxn
kernel on the image is obtained and then the value of
a particular pixel is replaced with the median value
of the nxn kernel.
Fig -1: Sorting in median filter.
2.1. Drawbacks of median filter:
 Effective only when the noise is impulse
noise (salt and pepper).
 Its output quality deteriorates when the
noise is more than 20%.
 It does not work efficiently when the
spatial density of noise is high.
 For large kernel size, there is no proper
smoothening of the image instead
valuable information from the image
gets blur.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 10 | Oct 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 842
2. ADAPTIVE MEDIAN FILTER
The adaptive median filter is designed to
eliminate the drawbacks faced by the standard
median. The main advantage of adaptive median
filter is the size of the kernel surrounding the
corrupted image is variable due to which better
output result is obtained.
The other main advantage of adaptive filter is that
unlike median filter it does not replace all the pixel
values with the median value.
The working of adaptive filter is a two step process;
in the first step its finds the median value for the
kernel and in the second step it checks whether the
current pixel value is a impulse (salt and pepper
noise) or not. If pixel value is corrupted then it
changes it value with median or else it retains the
value of the gray scale pixel.
By doing this, one can ensure that only the pixels
with impulse noise is changed while all other pixel
values are retained as they are.
3.1. Implementation of adaptive median filter
Zmin = Minimum gray level value in Sxy.
Zmax = Maximum 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
The adaptive median filter works in two levels
denoted Level A and Level B as follows:
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 Zxy.
Level B: B1 = Zxy – Zmin
B2 = Zxy – Zmin
If B1 > 0 And B2 < 0 output Zxy
Else output Zmed.
3.2. Flowchart:
Fig-2: Algorithm used for adaptive median filter
4. RESULTS:
The standard median filter and adaptive median
is been implemented using MATLAB Software. The
PSNR (peak signal to noise ratio) is been calculated
to understand the efficiency of both the filters.
Basically when more is the PSNR value better is noise
reduction by the filter.
From the calculated values we can observe that the
adaptive median filter has better noise filtering
capacity than the standard median filter.
Table-1: PSNR Value for salt &pepper noise
Noise
percentage
Median
Filter
(3x3)
Median
Filter
(5x5)
Adaptive
Median
Filter
10% 14.9433 14.625 41.8677
20% 12.009 11.8033 41.8702
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 10 | Oct 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 843
30% 10.2944 10.1596 41.8816
40% 9.1065 8.9761 41.8675
50% 8.0873 8.0011 41.8810
Table-2: PSNR Value for Gaussian noise
Noise
percentage
Median
Filter
(3x3)
Median
Filter
(5x5)
Adaptive
Median
Filter
10% 19.5683 18.6263 43.2747
20% 19.7813 18.8621 44.4432
30% 20.5014 19.5324 45.4093
40% 21.8413 20.7830 46.0971
50% 23.3442 22.1562 46.5204
Table-3: Output for salt & pepper noise.
Table-4: Output for Gaussian noise.
CONCLUSIONS
After implementing both standard and adaptive
median filter, we can observe that the adaptive
median filter works accurately for the impulse noise
that is salt and pepper noise.
For Gaussian noise the adaptive median filter gives
much better output than the standard median but
we can also observe that the output results are not so
satisfactory and accurate ,so there needs to be some
more modification to be done in the proposed model
to obtained better results for Gaussian noise.
Original image
Median 3x3
noisy image
Median 5x5
Adaptive median filter
Original image noisy image
median 3x3 Median 5x5
Adaptive median filter
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 10 | Oct 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 844
REFERENCES
[1] Rafael C. Gonzalez and Richard E. Woods
Digital Image Processing, 2001, pp.220-225.
[2] R. Boyle and R. Thomas Computer Vision: A
First Course, Blackwell Scientific Publications,
1988, pp. 32 - 34.
[3] Suman Shrestha, Image denoising using new
adaptive based median filter ,Signal & Image
Processing : An International Journal (SIPIJ)
Vol.5, No.4, August 2014
[4] Uk, Ijeacs. (2017). Performance Assessment
of Several Filters for Removing Salt and
Pepper Noise, Gaussian Noise, Rayleigh Noise
and Uniform Noise. International Journal of
Engineering and Applied Computer Science
(IJEACS). 02. 176-180.
10.24032/ijeacs/0206/01.
[5] Afrose, Zinat. (2012). Relaxed Median Filter:
A Better Noise Removal Filter for Compound
Images. International Journal on Computer
Science and Engineering (IJCSE).
[6] Ammayappan, Sathesh. (2018). A Nonlinear
Adaptive Median Filtering Based Noise
Removal Algorithm.

More Related Content

PDF
L0440285459
IJERA Editor
 
PDF
IRJET-Denoising of Images using Wavelet Transform,Weiner Filter and Soft Thre...
IRJET Journal
 
PDF
IRJET- Salt and Pepper Noise Removal using Decision based Filters
IRJET Journal
 
PDF
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
PDF
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
ijtsrd
 
PDF
An Efficient Image Denoising Approach for the Recovery of Impulse Noise
journalBEEI
 
PDF
Image Denoising of various images Using Wavelet Transform and Thresholding Te...
IRJET Journal
 
PDF
A literature review of various techniques available on Image Denoising
AI Publications
 
L0440285459
IJERA Editor
 
IRJET-Denoising of Images using Wavelet Transform,Weiner Filter and Soft Thre...
IRJET Journal
 
IRJET- Salt and Pepper Noise Removal using Decision based Filters
IRJET Journal
 
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Analysis PSNR of High Density Salt and Pepper Impulse Noise Using Median Filter
ijtsrd
 
An Efficient Image Denoising Approach for the Recovery of Impulse Noise
journalBEEI
 
Image Denoising of various images Using Wavelet Transform and Thresholding Te...
IRJET Journal
 
A literature review of various techniques available on Image Denoising
AI Publications
 

What's hot (20)

PDF
A Novel Approach For De-Noising CT Images
idescitation
 
PDF
Deblurring Image and Removing Noise from Medical Images for Cancerous Disease...
IRJET Journal
 
PDF
Review Paper on Image Denoising Techniques
IRJET Journal
 
PPTX
Final presentation(image enhancement system)
Hammaad Khan
 
PDF
Noise Reduction Technique using Bilateral Based Filter
IRJET Journal
 
PDF
A new methodology for sp noise removal in digital image processing
ijfcstjournal
 
PDF
An Image Enhancement Approach to Achieve High Speed using Adaptive Modified B...
TELKOMNIKA JOURNAL
 
PDF
I010324954
IOSR Journals
 
PDF
L011117884
IOSR Journals
 
PDF
A Decision tree and Conditional Median Filter Based Denoising for impulse noi...
IJERA Editor
 
PDF
Novel adaptive filter (naf) for impulse noise suppression from digital images
ijbbjournal
 
PDF
Image Denoising using Statistical and Non Statistical Method
IRJET Journal
 
PDF
Removing Fog from the Image Using Median Filter and Redundancy Removal Strategy
IRJET Journal
 
PDF
Survey on Noise Removal in Digital Images
IOSR Journals
 
PDF
To Modify the Peer Group Filtering Technique by Genetic Algorithm for Noise R...
IRJET Journal
 
PDF
Strengthen Fuzzy Pronouncement for Impulse Noise Riddance Method for Images B...
IRJET Journal
 
PDF
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
PDF
IRJET- Noise Cancellation
IRJET Journal
 
PDF
A NOVEL ALGORITHM FOR IMAGE DENOISING USING DT-CWT
sipij
 
PDF
Adapter Wavelet Thresholding for Image Denoising Using Various Shrinkage Unde...
muhammed jassim k
 
A Novel Approach For De-Noising CT Images
idescitation
 
Deblurring Image and Removing Noise from Medical Images for Cancerous Disease...
IRJET Journal
 
Review Paper on Image Denoising Techniques
IRJET Journal
 
Final presentation(image enhancement system)
Hammaad Khan
 
Noise Reduction Technique using Bilateral Based Filter
IRJET Journal
 
A new methodology for sp noise removal in digital image processing
ijfcstjournal
 
An Image Enhancement Approach to Achieve High Speed using Adaptive Modified B...
TELKOMNIKA JOURNAL
 
I010324954
IOSR Journals
 
L011117884
IOSR Journals
 
A Decision tree and Conditional Median Filter Based Denoising for impulse noi...
IJERA Editor
 
Novel adaptive filter (naf) for impulse noise suppression from digital images
ijbbjournal
 
Image Denoising using Statistical and Non Statistical Method
IRJET Journal
 
Removing Fog from the Image Using Median Filter and Redundancy Removal Strategy
IRJET Journal
 
Survey on Noise Removal in Digital Images
IOSR Journals
 
To Modify the Peer Group Filtering Technique by Genetic Algorithm for Noise R...
IRJET Journal
 
Strengthen Fuzzy Pronouncement for Impulse Noise Riddance Method for Images B...
IRJET Journal
 
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
IRJET- Noise Cancellation
IRJET Journal
 
A NOVEL ALGORITHM FOR IMAGE DENOISING USING DT-CWT
sipij
 
Adapter Wavelet Thresholding for Image Denoising Using Various Shrinkage Unde...
muhammed jassim k
 
Ad

Similar to IRJET- Image Restoration using Adaptive Median Filtering (20)

PDF
Adaptive denoising technique for colour images
eSAT Journals
 
PDF
IRJET- A Review on Various Restoration Techniques in Digital Image Processing
IRJET Journal
 
PDF
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET Journal
 
PDF
A Comparative Study of Image Denoising Techniques for Medical Images
IRJET Journal
 
PDF
FPGA Implementation of Decision Based Algorithm for Removal of Impulse Noise
IRJET Journal
 
PDF
Performance analysis of new proposed window for the improvement of snr &amp; ...
eSAT Journals
 
PDF
Performance analysis of new proposed window for
eSAT Publishing House
 
PDF
IRJET- SEPD Technique for Removal of Salt and Pepper Noise in Digital Images
IRJET Journal
 
PDF
A SURVEY : On Image Denoising and its Various Techniques
IRJET Journal
 
PDF
Hk3513021306
IJERA Editor
 
PDF
THE EFFECT OF IMPLEMENTING OF NONLINEAR FILTERS FOR ENHANCING MEDICAL IMAGES ...
ijcsit
 
PDF
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
IRJET Journal
 
PDF
Aw044306308
IJERA Editor
 
PDF
IRJET- Random Valued Impulse Noise Detection Schemes
IRJET Journal
 
PDF
Review of Salt and Pepper Noise Present Within the Image during Image Compres...
IRJET Journal
 
PDF
PERFORMANCE ANALYSIS OF UNSYMMETRICAL TRIMMED MEDIAN AS DETECTOR ON IMAGE NOI...
ijistjournal
 
PDF
PERFORMANCE ANALYSIS OF UNSYMMETRICAL TRIMMED MEDIAN AS DETECTOR ON IMAGE NOI...
ijistjournal
 
PDF
An iterative unsymmetrical trimmed midpoint median filter for removal of high...
eSAT Publishing House
 
PDF
A study to improve the quality of image enhancement
eSAT Publishing House
 
PDF
COMPARATIVE ANALYSIS OF FILTERING TECHNIQUES IN CORONA VIRUS PREDICTION SYSTEM
IRJET Journal
 
Adaptive denoising technique for colour images
eSAT Journals
 
IRJET- A Review on Various Restoration Techniques in Digital Image Processing
IRJET Journal
 
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET Journal
 
A Comparative Study of Image Denoising Techniques for Medical Images
IRJET Journal
 
FPGA Implementation of Decision Based Algorithm for Removal of Impulse Noise
IRJET Journal
 
Performance analysis of new proposed window for the improvement of snr &amp; ...
eSAT Journals
 
Performance analysis of new proposed window for
eSAT Publishing House
 
IRJET- SEPD Technique for Removal of Salt and Pepper Noise in Digital Images
IRJET Journal
 
A SURVEY : On Image Denoising and its Various Techniques
IRJET Journal
 
Hk3513021306
IJERA Editor
 
THE EFFECT OF IMPLEMENTING OF NONLINEAR FILTERS FOR ENHANCING MEDICAL IMAGES ...
ijcsit
 
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
IRJET Journal
 
Aw044306308
IJERA Editor
 
IRJET- Random Valued Impulse Noise Detection Schemes
IRJET Journal
 
Review of Salt and Pepper Noise Present Within the Image during Image Compres...
IRJET Journal
 
PERFORMANCE ANALYSIS OF UNSYMMETRICAL TRIMMED MEDIAN AS DETECTOR ON IMAGE NOI...
ijistjournal
 
PERFORMANCE ANALYSIS OF UNSYMMETRICAL TRIMMED MEDIAN AS DETECTOR ON IMAGE NOI...
ijistjournal
 
An iterative unsymmetrical trimmed midpoint median filter for removal of high...
eSAT Publishing House
 
A study to improve the quality of image enhancement
eSAT Publishing House
 
COMPARATIVE ANALYSIS OF FILTERING TECHNIQUES IN CORONA VIRUS PREDICTION SYSTEM
IRJET Journal
 
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
PDF
Kiona – A Smart Society Automation Project
IRJET Journal
 
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
PDF
Breast Cancer Detection using Computer Vision
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 

Recently uploaded (20)

PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PPTX
AgentX UiPath Community Webinar series - Delhi
RohitRadhakrishnan8
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPTX
22PCOAM21 Data Quality Session 3 Data Quality.pptx
Guru Nanak Technical Institutions
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
AgentX UiPath Community Webinar series - Delhi
RohitRadhakrishnan8
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
22PCOAM21 Data Quality Session 3 Data Quality.pptx
Guru Nanak Technical Institutions
 
Zero Carbon Building Performance standard
BassemOsman1
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 

IRJET- Image Restoration using Adaptive Median Filtering

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 10 | Oct 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 841 Image Restoration using Adaptive Median Filtering Hetvi Soni[1], Darshana Sankhe[2] Student[1], Professor[2], Dept. Of Electronics Engineering, D.J Sanghvi College of Engineering, Mumbai, India ----------------------------------------------------------------------***--------------------------------------------------------------------- Abstract – In the field of image processing, image restoration is the most essential task. Image often gets corrupted due to which there is presence of noise in the image. Generally median filter is used to remove the presence of such noise but median filter works fine for about intensity of 20% noise in the image. So in order to get a better image restoration we can use another image restoration technique which is adaptive median filtering which works very well for noise intensity beyond 20% .The benefit of adaptive filter over median filter is that it does not erode away edges or small details in the image. Key Words: Adaptive median filter, Image Processing, Median filter, Salt and Pepper Noise, Gaussian Noise PSNR. 1. INTRODUCTION In the field of image processing image gets corrupted during image transmission or acquisition stage due to various influencing parameters such as faulty device etc. Such type of corruption gives rise to noise in the image which affects the information present in the image. The various type of noise that arises in the image is impulse noise also know as salt and pepper noise, Gaussian noise, and speckle noise to name a few [1]. In order to retrieve the original information from the image and eliminate noise from the image we need to apply certain de-noising techniques. These de- noising techniques make use of kernel which is made to convolve over the image and the result obtain through this convolution is a noise free image. The size of kernel (window) used for the same varies and intended output with same also varies. One such commonly used technique is median filtering. Median filtering works fine when the noise intensity is less but it starts to fail when the noise intensity in the image is high [3]. In order to overcome this problem we can make of spatial filtering technique. One such Filtering algorithm used is adaptive median filter. Adaptive median filtering is better than median as it is a two step filtering technique. The main advantage of adaptive median filter is that the behavior of the adaptive filter changes depending on the characteristics of the image under filter. Other main feature of adaptive filter is that it works well not only for impulse noise but also for speckle noise and Gaussian noise [3]. 2. MEDIAN FILTER Median filter is the most commonly used filter. It is a non linear method of filtering. The size of the kernel can be of nxn size which is made to convolve or slide over a mxm corrupted image. While performing this operation the median value of nxn kernel on the image is obtained and then the value of a particular pixel is replaced with the median value of the nxn kernel. Fig -1: Sorting in median filter. 2.1. Drawbacks of median filter:  Effective only when the noise is impulse noise (salt and pepper).  Its output quality deteriorates when the noise is more than 20%.  It does not work efficiently when the spatial density of noise is high.  For large kernel size, there is no proper smoothening of the image instead valuable information from the image gets blur.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 10 | Oct 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 842 2. ADAPTIVE MEDIAN FILTER The adaptive median filter is designed to eliminate the drawbacks faced by the standard median. The main advantage of adaptive median filter is the size of the kernel surrounding the corrupted image is variable due to which better output result is obtained. The other main advantage of adaptive filter is that unlike median filter it does not replace all the pixel values with the median value. The working of adaptive filter is a two step process; in the first step its finds the median value for the kernel and in the second step it checks whether the current pixel value is a impulse (salt and pepper noise) or not. If pixel value is corrupted then it changes it value with median or else it retains the value of the gray scale pixel. By doing this, one can ensure that only the pixels with impulse noise is changed while all other pixel values are retained as they are. 3.1. Implementation of adaptive median filter Zmin = Minimum gray level value in Sxy. Zmax = Maximum 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 The adaptive median filter works in two levels denoted Level A and Level B as follows: 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 Zxy. Level B: B1 = Zxy – Zmin B2 = Zxy – Zmin If B1 > 0 And B2 < 0 output Zxy Else output Zmed. 3.2. Flowchart: Fig-2: Algorithm used for adaptive median filter 4. RESULTS: The standard median filter and adaptive median is been implemented using MATLAB Software. The PSNR (peak signal to noise ratio) is been calculated to understand the efficiency of both the filters. Basically when more is the PSNR value better is noise reduction by the filter. From the calculated values we can observe that the adaptive median filter has better noise filtering capacity than the standard median filter. Table-1: PSNR Value for salt &pepper noise Noise percentage Median Filter (3x3) Median Filter (5x5) Adaptive Median Filter 10% 14.9433 14.625 41.8677 20% 12.009 11.8033 41.8702
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 10 | Oct 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 843 30% 10.2944 10.1596 41.8816 40% 9.1065 8.9761 41.8675 50% 8.0873 8.0011 41.8810 Table-2: PSNR Value for Gaussian noise Noise percentage Median Filter (3x3) Median Filter (5x5) Adaptive Median Filter 10% 19.5683 18.6263 43.2747 20% 19.7813 18.8621 44.4432 30% 20.5014 19.5324 45.4093 40% 21.8413 20.7830 46.0971 50% 23.3442 22.1562 46.5204 Table-3: Output for salt & pepper noise. Table-4: Output for Gaussian noise. CONCLUSIONS After implementing both standard and adaptive median filter, we can observe that the adaptive median filter works accurately for the impulse noise that is salt and pepper noise. For Gaussian noise the adaptive median filter gives much better output than the standard median but we can also observe that the output results are not so satisfactory and accurate ,so there needs to be some more modification to be done in the proposed model to obtained better results for Gaussian noise. Original image Median 3x3 noisy image Median 5x5 Adaptive median filter Original image noisy image median 3x3 Median 5x5 Adaptive median filter
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 10 | Oct 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 844 REFERENCES [1] Rafael C. Gonzalez and Richard E. Woods Digital Image Processing, 2001, pp.220-225. [2] R. Boyle and R. Thomas Computer Vision: A First Course, Blackwell Scientific Publications, 1988, pp. 32 - 34. [3] Suman Shrestha, Image denoising using new adaptive based median filter ,Signal & Image Processing : An International Journal (SIPIJ) Vol.5, No.4, August 2014 [4] Uk, Ijeacs. (2017). Performance Assessment of Several Filters for Removing Salt and Pepper Noise, Gaussian Noise, Rayleigh Noise and Uniform Noise. International Journal of Engineering and Applied Computer Science (IJEACS). 02. 176-180. 10.24032/ijeacs/0206/01. [5] Afrose, Zinat. (2012). Relaxed Median Filter: A Better Noise Removal Filter for Compound Images. International Journal on Computer Science and Engineering (IJCSE). [6] Ammayappan, Sathesh. (2018). A Nonlinear Adaptive Median Filtering Based Noise Removal Algorithm.