%This demonstrates image sharpening using the discrete Laplacian.
clear;load imdemos.mat;
X1=coins;Y1=conv2(X1,-[0 1 0;1 -5 1;0 1 0],'same');
figure,imagesc(X1),colormap(gray),axis off,title('Original coins image')
figure,imagesc(Y1),colormap(gray),axis off,title('Sharpened coins image')

X2=circuit4;Y2=conv2(X2,-[0 1 0;1 -5 1;0 1 0],'same');
figure,imagesc(X2),colormap(gray),axis off,title('Original circuit image')
figure,imagesc(Y2),colormap(gray),axis off,title('Sharpened circuit image')


