Loading...
Given a 3×4 projection matrix P, compute the camera center C in world coordinates.
The camera center is the point in 3D space where all projection rays converge. It satisfies:
P⋅C~=0
where C~=[Cx,Cy,Cz,1]T is the camera center in homogeneous coordinates. This is the null space of P.
Algorithm using SVD:
Round each coordinate to 4 decimal places.
P = [[1, 0, 0, -5],
[0, 1, 0, -3],
[0, 0, 1, -2]][5.0, 3.0, 2.0]