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

apply laplacian filter to image

Sun Mar 27, 2011 9:53 pm

Laplacian filter is a second derivative edge detector operator .Laplacian is more sensitive to noise than sobel and prewitt.Laplacian calculate the difference of center point to the surrounding pixels .

Code:

    clc
;
   
    
%% create a new figure to show the image . 
    newImg 
= imread('Water lilies.jpg');
    figure(1);
    imshow(newImg);
    figure(2);
     %% create laplacian filter. 
    H 
= fspecial('laplacian');
     %% apply laplacian filter. 
    blurred 
= imfilter(newImg,H);
    imshow(blurred); title('Edge detected Image')

 



Attachments
1.GIF
1.GIF (85.99 KiB) Viewed 38034 times

Re: apply laplacian filter to image

Fri Jun 10, 2011 5:08 am

hi, do u know how to apply 3x3 laplacian filter with 8 at the center?

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

Topic Tags

Matlab Image