function v = cannysimple(f)

%% Computes canny sigma and lambda values for f given as a template
%% A and n0 are assumed to be 1


fc = ceil(length(f)/2);
fp = conv(f,[1,-1]);

sigma = abs(sum(f(1:fc)))/sqrt(sum(f.*f));

lambda = 0.5*abs(f(fc+1)-f(fc-1))/sqrt(sum(fp.*fp));

v = sigma*lambda;