torr_ls.m

来自「计算基本矩阵的matlab例程」· M 代码 · 共 33 行

M
33
字号
% 
% %designed for the good of the world by Philip Torr 
% copyright Philip Torr and Microsoft Corp 2002
% orthogonal regression see
% @article{Torr97c,
%         author="Torr, P. H. S.  and Murray, D. W. ",
%         title="The Development and Comparison of Robust Methods for Estimating the Fundamental Matrix",
%         journal="IJCV",
%         volume = 24,
%         number = 3,
%         pages = {271--300},
%         year=1997
% }
% 

function [vec, error] = torr_ls(D)

try
[U, S, V] = svd(D);

catch
    disp('what happeend?');
end

V;

vec = V(:,length(V));

error = S(length(V),length(V));

%disp('performing least squares')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?