I=imread('neurona_gris.jpg');
imshow(I);
I2=imnoise(I,'salt & pepper');
figure, imshow(I2);
W=[1,1,1;1,1,1;1,1,1]/9;
I3=imfilter(I2,W);
figure, imshow(I3);
W1=ones(5)/25;
I4=imfilter(I2,W1);
figure, imshow(I4);
W2=ones(11)/121;
I5=imfilter(I2,W2);
figure, imshow(I5);
h=fspecial('average');
I6=imfilter(I2, h);
figure, imshow(I6);
I7=medfilt2(I2,[3,3]);
figure, imshow(I7);
I8=wiener2(I2,[5,5]);
figure, imshow(I8);
%imwrite(I5, 'neurona_5.jpg');
%M=[0,-1,0;-1,4,-1;0,-1,0];
%I4=imfilter(I3,M);
%figure, imshow(I4);


