Projection Matrices from Trifocal Tensor
To recover the projection matrices from the trifocal tensor , we can use the relationship between the trifocal tensor and the projection matrices of the three views. Here’s the process:
1. Relationship Between the Trifocal Tensor and Projection Matrices
The trifocal tensor
- The first projection matrix is typically chosen as identity matrix and is a vector.
- The second and third projection matrices and can be derived from the trifocal tensor.
For canonical projective geometry:
- Each slice of is given by: where and are the columns of and , respectively.
2. Recovering , (Epipoles)
The epipoles and , corresponding to and , can be extracted as follows:
- (third image epipole in the first image) is the common null space of the matrices , , and .
- (second image epipole in the first image) is similarly obtained from the slices , , .
3. Recovering and (Camera Matrices)
Given the epipoles and :
- The slices of can be used to form a linear system to recover and .
Python Code to Recover Projection Matrices
Explanation:
- Canonical Initialization: is set as .
- Epipole Recovery: The epipoles and are extracted as the null spaces of the appropriate slices of .
- Matrix Recovery: Using the epipoles and slices of , the projection matrices and are computed.
- Projection Matrices: and are assembled from and .
Comments
Post a Comment