To solve this problem, we'll develop a linear algorithm to compute the camera matrix ( P ) when the camera location (center) ( C ) is known but the orientation (rotation matrix ( R )) is unknown. Additionally, we'll determine the minimum number of point correspondences required for a unique solution.
Algorithm to Compute ( P ) Given Known Camera Center ( C ):
-
Express ( P ) in Terms of ( M ) and ( C ):
Since the camera center ( C ) is known, we can write the camera projection matrix ( P ) as:
[
P = [M | -M C]
]
where ( M ) is a ( 3 \times 3 ) matrix combining the intrinsic matrix ( K ) and the rotation matrix ( R ), i.e., ( M = K R ).
-
Set Up the Projection Equations:
For each point correspondence ( X_i \leftrightarrow x_i ), where ( X_i ) is a 3D point in homogeneous coordinates and ( x_i ) is its corresponding image point, we have:
[
x_i \sim P X_i = M (X_i - C)
]
Here, ( X_i - C ) shifts the 3D point to the camera's coordinate system.
-
Formulate Linear Equations:
Since the scale factor is unknown (due to projective scaling), we eliminate it by cross-multiplying:
[
x_i \times (M (X_i - C)) = 0
]
This results in two independent linear equations per point correspondence (since the cross product yields a 3D vector whose components sum to zero in a homogeneous system).
-
Construct the Linear System:
Let ( M ) have elements ( m_{ij} ). We can write the equations for each point correspondence ( i ) as:
[
\begin{cases}
(X_i - C)^T \left( -m_{31} x_i^{(1)} + m_{11} \right) + (Y_i - C_y) \left( -m_{32} x_i^{(1)} + m_{12} \right) + (Z_i - C_z) \left( -m_{33} x_i^{(1)} + m_{13} \right) = 0 \
(X_i - C_x) \left( -m_{31} x_i^{(2)} + m_{21} \right) + (Y_i - C_y) \left( -m_{32} x_i^{(2)} + m_{22} \right) + (Z_i - C_z) \left( -m_{33} x_i^{(2)} + m_{23} \right) = 0
\end{cases}
]
These equations are linear in the elements of ( M ).
-
Set Up the Matrix Equation:
Collect the coefficients into a matrix ( A ) and the unknowns into a vector ( m ):
[
A m = 0
]
where ( m = [m_{11}, m_{12}, m_{13}, m_{21}, m_{22}, m_{23}, m_{31}, m_{32}, m_{33}]^T ).
-
Solve for ( M ):
Solve the homogeneous linear system using Singular Value Decomposition (SVD) or another suitable method. Since ( m ) is determined up to scale, the solution is the singular vector corresponding to the smallest singular value of ( A ).
-
Compute ( P ):
Once ( M ) is found (up to scale), compute ( p_4 = -M C ), and construct the camera matrix:
[
P = [M | p_4]
]
Minimum Number of Point Correspondences Required:
Answer:
An algorithm:
• With known camera center C, write P = [M | –M C] with unknown 3×3 matrix M.
• For each matched point, write xₖ × (M (Xₖ – C)) = 0—linear in M’s entries.
• Stack these equations for all points and solve for M using linear methods.
Ignoring degeneracies, four point matches are needed (each gives two equations; M has 8 degrees of freedom up to scale).