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

apply mean filter to image

Fri Mar 25, 2011 6:13 pm

In following image ,apply average filter to image with Gaussian noise.
Code:


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



Attachments
1.GIF
1.GIF (28.46 KiB) Viewed 25768 times

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

Topic Tags

Matlab Image