Line | |
---|
1 | % By Philip Torr 2002
|
---|
2 | % copyright Microsoft Corp.
|
---|
3 | function [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.
|
---|
8 | P1 = [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
|
---|
12 | P2 = C * [ R'; t']' * sign(det(C)) * sign(det(R)); |
---|
Note: See
TracBrowser
for help on using the repository browser.