Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
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 [ 85.99 KiB | Viewed 2657 times ]
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
shiying
Code subject: Re: apply laplacian filter to image
Posted: Fri Jun 10, 2011 5:08 am
Joined: Fri Jun 10, 2011 5:04 am Posts: 1 Has thanked: 0 time Have thanks: 0 time
hi, do u know how to apply 3x3 laplacian filter with 8 at the center?