source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/torr/torr_RCT2P.m @ 86

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

Added original make3d

File size: 523 bytes
Line 
1%       By Philip Torr 2002
2%       copyright Microsoft Corp.
3function [P1, P2] = torr_RCT2P(C,R,t)
4
5
6%next establish the four possible camera matrix pairs as points out in Maybank, Hartley & zisserman etc
7%first camera is 3x4 at origin of the world system.
8P1 = [C'; 0,0,0]' * sign(det(C));
9
10%given this there are four choices for the second, we normalize them so that the
11%determinant of the first 3x3 is greater than zero, this is useful for determining chierality later
12P2 = C * [ R'; t']' * sign(det(C)) * sign(det(R));
Note: See TracBrowser for help on using the repository browser.