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

applying wiener filter to image

Sat Apr 09, 2011 10:41 pm

applying wiener filter to image which is degraded .
Code:

    
%% apply wiener filter .
     clc;
    
     newImageRGB 
= imread('saturn.png');
     %% convert image to gray level
     grayImage 
= rgb2gray(newImageRGB);
     figure;
     imshow(grayImage);
     
     
%% adding noise to image .
     afferNoise = imnoise(grayImage,'gaussian',0,0.025);
     figure;
     imshow(afferNoise)
     %% applying wiener filter ot image.
     afterWiener = wiener2(afferNoise,[6 6]);
     figure, imshow(afterWiener)
 



Attachments
image1.PNG
original image
image1.PNG (79.08 KiB) Viewed 17147 times
image2.PNG
image with noise
image2.PNG (155.27 KiB) Viewed 17147 times
image3.PNG
after wiener filter
image3.PNG (160.07 KiB) Viewed 17147 times

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

Topic Tags

Matlab Basics