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 .
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')
1.GIF [ 85.99 KiB | Viewed 35773 times ]
_________________ M. S. Rakha, Ph.D. Queen's University Canada