compute_stick_tf.m
来自「张量投票在matlab环境下的仿真。球型张量及棒型张量的仿真」· M 代码 · 共 23 行
M
23 行
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 + =
减小字号Ctrl + -
显示快捷键?