i=imread('Ehsan-Shahnazi.jpg');
i2=rgb2gray(i);
i3=imadjust(i2);

one1 = ones(3,3)/25;
one2 = ones(3,3)/5;
one3 = ones(5,5)/25;
one4 = ones(5,5)/5;
one5 = ones(7,7)/25;
one6 = ones(7,7)/5;

imf1 = imfilter(i3,one1);
imf2 = imfilter(i3,one2);
imf3 = imfilter(i3,one3);
imf4 = imfilter(i3,one4);
imf5 = imfilter(i3,one5);
imf6 = imfilter(i3,one6);

figure;
subplot(2,3,1);
imshow(imf1);
title('ones(3,3)/25');

subplot(2,3,2);
imshow(imf2);
title('ones(3,3)/5');

subplot(2,3,3);
imshow(imf3);
title('ones(5,5)/25');

subplot(2,3,4);
imshow(imf4);
title('ones(5,5)/5');

subplot(2,3,5);
imshow(imf5);
title('ones(7,7)/25');

subplot(2,3,6);
imshow(imf6);
title('ones(7,7)/5');
