📄 compute_stick_tf.m
字号:
function T = compute_stick_tf(v,N,n,sigma,c)
% compute_stick_tf - compute the voting kernel of a stick tensor.
%
% T = compute_stick_tf(v,n,N,sigma,c);
%
% 'v' is the non-null eigenvector of the stick tensor (i.e. the tensor is v*v').
% 'N' is the total size of the image (supposed to lie in [0,1]x[0,1]).
%
% The equation for the decay of the field is
% DF(s,k) = exp(-(s^2+c*k^2)/sigma^2)
% where 's' is the length of the circle that joins
% the two points, and 'k' is its curvature.
%
% Optional:
% 'sigma' control the scale of the voting field.
% 'c' control the ratio between distance and curvature.
% The higher 'c' is, the narrower the field will be.
% 'n' is the size of the kernel (should be odd).
%
% See also compute_stick_ball.
%
% Copyright (c) 2004 Gabriel Peyr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -