Switch to full style
General MATLAB code examples.
Post a reply

Median filter to image

Wed Mar 09, 2011 10:44 pm

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');
 




Re: Median filter to image

Fri Mar 11, 2011 7:55 am

Thank you for sharing some useful info!!..

Re: Median filter to image

Wed Aug 29, 2012 5:45 pm

i have to create an innovative filter of my own .
hey please can someone tell me , HOW TO IMPROVE MEDIAN FILTERS .

Post a reply
  Related Posts  to : Median filter to image
 apply mean filter to image     -  
 Image Noise Filter in Java     -  
 applying wiener filter to image     -  
 apply sobel filter to image     -  
 Applying canny filter to image     -  
 apply prewitt filter to image     -  
 apply laplacian filter to image     -  
 apply robert filter to image     -  
 Image Custom Filter In Java     -  
 rank order filter effects on image     -  

Topic Tags

Matlab Image