Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
Applying Median filter to image using MATLAB
Code:
%% 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');
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
alexsmth114
Code subject: Re: Median filter to image
Posted: Fri Mar 11, 2011 7:55 am
Joined: Mon Mar 07, 2011 6:47 am Posts: 3 Has thanked: 0 time Have thanks: 0 time