Last change
on this file since 177 was
37,
checked in by (none), 15 years ago
|
Added original make3d
|
-
Property svn:executable set to
*
|
File size:
424 bytes
|
Line | |
---|
1 | %P = vgg_P_from_F(F) Compute cameras from fundamental matrix.
|
---|
2 | % F has size (3,3), P has size (3,4).
|
---|
3 | %
|
---|
4 | % If x2'*F*x1 = 0 for any pair of image points x1 and x2,
|
---|
5 | % then the camera matrices of the image pair are
|
---|
6 | % P1 = eye(3,4) and P2 = vgg_P_from_F(F), up to a scene homography.
|
---|
7 |
|
---|
8 | % Tomas Werner, Oct 2001
|
---|
9 |
|
---|
10 | function P = vgg_P_from_F(F)
|
---|
11 |
|
---|
12 | [U,S,V] = svd(F);
|
---|
13 | e = U(:,3);
|
---|
14 | P = [-vgg_contreps(e)*F e];
|
---|
15 |
|
---|
16 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.