Wed Mar 09, 2011 10:44 pm
%% read the image from the file system to Matrix I
I = imread('cameraman.tif');
%% create a new figure to show the image .
figure(1);
%% show the loaded image.
imshow(I);
%% apply median filter using the internal matlab function medfilt2 .
Y=medfilt2(I,[5 5]);
figure(2);
%% show image after applying the filter
imshow(Y);
%% write the new image to the file system .
imwrite(Y,'newimage.gif','GIF');
Fri Mar 11, 2011 7:55 am
Wed Aug 29, 2012 5:45 pm
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.