source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/torr/torr_ls.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 722 bytes
Line 
1%       By Philip Torr 2002
2%       copyright Microsoft Corp.
3%
4% %designed for the good of the world by Philip Torr
5% copyright Philip Torr and Microsoft Corp 2002
6% orthogonal regression see
7% @article{Torr97c,
8%         author="Torr, P. H. S.  and Murray, D. W. ",
9%         title="The Development and Comparison of Robust Methods for Estimating the Fundamental Matrix",
10%         journal="IJCV",
11%         volume = 24,
12%         number = 3,
13%         pages = {271--300},
14%         year=1997
15% }
16%
17
18function [vec, error] = torr_ls(D)
19
20try
21[U, S, V] = svd(D);
22
23catch
24    disp('what happeend?');
25end
26
27V;
28
29vec = V(:,length(V));
30
31error = S(length(V),length(V));
32
33%disp('performing least squares')
34
Note: See TracBrowser for help on using the repository browser.