//Demonstrate Spatial Domain Processing
//Scilab 5.4.1
//Windows 10 
//Requires SIVP, IPD toolboxes

clear;
clc;

lenna=imread('Lenna.png');

//Sobel
h = fspecial('sobel');
lenaSobel = imfilter(lenna,h)
imwrite(lenaSobel,'lenaSobel.jpeg');

//Prewitt
h = fspecial('prewitt');
lenaPrewitt = imfilter(lenna,h)
imwrite(lenaPrewitt,'lenaPrewitt.jpeg');

//Laplacian
h = fspecial('laplacian');
lenaLaplacian = imfilter(lenna,h)
imwrite(lenaLaplacian,'lenaLaplacian.jpeg');
