Rev | Line | |
---|
[37] | 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 |
|
---|
| 18 | function [vec, error] = torr_ls(D)
|
---|
| 19 |
|
---|
| 20 | try
|
---|
| 21 | [U, S, V] = svd(D);
|
---|
| 22 |
|
---|
| 23 | catch
|
---|
| 24 | disp('what happeend?');
|
---|
| 25 | end
|
---|
| 26 |
|
---|
| 27 | V;
|
---|
| 28 |
|
---|
| 29 | vec = V(:,length(V));
|
---|
| 30 |
|
---|
| 31 | error = S(length(V),length(V));
|
---|
| 32 |
|
---|
| 33 | %disp('performing least squares')
|
---|
| 34 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.