torr_sampson_f.m
来自「matlab三维重建程序」· M 代码 · 共 15 行
M
15 行
% By Philip Torr 2002
% copyright Microsoft Corp.
function f_out = torr_Sampson_F(x1,y1,x2,y2, no_matches,m3, D_orig, f)
grad_i = torr_grad_f(f,x1,y1,x2,y2, no_matches, m3);
%remove singularities
grad_i = max(grad_i,0.01);
%Sampson
w_ne = sqrt(1 ./grad_i);
Weights = repmat(w_ne,1,9);
D = Weights .* D_orig;
f_out = torr_ls(D);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?