>> orgImg=imread('cameraman.tif');
>> noisy_image=imnoise(orgImg, 'salt & pepper' , 0.02);
>> app_filter_1=fspecial('average', [3 3]);
>> app_filter_2=imfilter(noisy_image,app_filter_1);
>> app_filter_3=medfilt2(noisy_image, [3 3]);
>> subplot(2,2,1), imshow(orgImg), title('Originalt Image');
>> subplot(2,2,2), imshow(noisy_image), title('Salt & Pepper Image');
>> subplot(2,2,3), imshow(app_filter_2), title('Average Filter');
>> subplot(2,2,4), imshow(app_filter_3), title('Median Filter');