RGB = imread('football.jpg');
I = rgb2gray(RGB);
NI = imnoise(I,'speckle');
Y = dsf(I,3);
Z3 = dsf(NI,3);
Z5 = dsf(NI,5);
Z7 = dsf(NI,7);
subplot(2,3,1);imshow(I);title('Original Image');
subplot(2,3,2);imshow(NI);title('Speckled Image');
subplot(2,3,3);imshow(Y);title('Smooth Image of Original Image');
subplot(2,3,4);imshow(Z3);title({'Smooth Image of Speckled Image','with window = 3X3'});
subplot(2,3,5);imshow(Z5);title({'Smooth Image of Speckled Image','with window = 5X5'});
subplot(2,3,6);imshow(Z7);title({'Smooth Image of Speckled Image','with window = 7X7'});