Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 633 Bytes
% LAPLACIAN.m - Laplacian operator example
%
% This code implements Laplacian operator.
%
% You can do with this code whatever you want. The main purpose is help
% people learning about this. Also, there is no warranty of any kind.
%
% Juan Miguel Valverde Martinez
% http://laid.delanover.com
clear;clc;
preserve = 1;
template = [0 -1 0;
-1 4 -1;
0 -1 0;];
% Read image
im = rgb2gray(imread('utebo.jpg'));
% Convolution
convoluted = myConv( im, template, preserve);
% In some trials I found that it works better without doing the
% findZeroCrossings.
result = findZeroCrossings(convoluted, preserve);
imshow(result);