source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/zisserman/vgg_multiview/vgg_P_from_F.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 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
10function P = vgg_P_from_F(F)
11
12[U,S,V] = svd(F);
13e = U(:,3);
14P = [-vgg_contreps(e)*F e];
15
16return
Note: See TracBrowser for help on using the repository browser.