You are on page 1of 1

mean filter

I = imread('cameraman.tif');
%% Show current image.
imshow(I);
figure;
G=imnoise(I,'gaussian',0.0005,0.0019);
imshow(G);
figure;
h = fspecial('average', 3);
F=imfilter(G,h);
imshow(F); median filter is in tutorial.pdf
min and max are as functions
See more at: http://www.codemiles.com/matlab-examples/apply-mean-filter-to-image
-t7315.html#sthash.jo4L5Knh.dpuf

You might also like