1. Remove Salt and Pepper Noise from Images
Amin Ur Rehman
Waqas Adnan
Waqar Alam
CECOS UNIVERSITY OF IT & EMERGING SCIENCES PESHAWAR
2. INTRODUCTION
We have use Median filtering Technique for removal of Salt and
Pepper Noise from Images.
Because it can remove salt and pepper noise without significantly
reducing the sharpness of an image.
In this project we have used the Median Filter block to remove salt
and pepper noise from an intensity image.
3. PROCEDURE
STEP 01:
Define an intensity image in the MATLABworkspace and add
noise to it.
Typing the code we get the image.
Coding for image display
8. Now we add noisy to the above original image by typing the
following code and got the noisy image as shown below.
Coding for getting salt & pepper image:
>> noisy_img = imnoise(i,'salt & pepper',0.02);
>> imshow(noisy_img)
10. Now for removing the noisy we use direct filtering command
“Med filter command” with ‘2’ for two dimensional vector image.
Coding for removing:
k = medfilt2(noisy_img);
close all;
subplot(211);imshow(noisy_img); subplot(212); imshow(k);