clear all
close all
in = imread('parrot.jpg');
%%
in = double( 0.3*in(:,:,1) + 0.59*in(:,:,2) + 0.11*in(:,:,3) );

h_laplace = [ 0 -1 0;
             -1 4 -1;
              0 -1 0];
h_gauss = 1/16*[1 2 1;
                2 4 2;
                1 2 1];
%%
out = conv2(in,conv2(h_gauss,h_laplace),'same');
%out = conv2(in,h_laplace,'same');
out = uint8(out*15);

figure
imshow(out)