public class TrifocalExtractGeometries
extends java.lang.Object
Extracts the epipoles, camera matrices, and fundamental matrices for views 2 and 3 with respect to view 1 from the trifocal tensor. Epipoles are found in homogeneous coordinates. Singular value decomposition is used to compute each vector and is robust to noise and epipoles will have a norm of one..
Properties:
where F1i is a fundamental matrix from image 1 to i.
References:
| Constructor and Description |
|---|
TrifocalExtractGeometries() |
| Modifier and Type | Method and Description |
|---|---|
void |
extractCamera(org.ejml.data.DMatrixRMaj P2,
org.ejml.data.DMatrixRMaj P3)
Extract the camera matrices up to a common projective transform.
|
void |
extractEpipoles(georegression.struct.point.Point3D_F64 e2,
georegression.struct.point.Point3D_F64 e3)
Extracts the epipoles from the trifocal tensor.
|
void |
extractFundmental(org.ejml.data.DMatrixRMaj F21,
org.ejml.data.DMatrixRMaj F31)
Extract the fundamental matrices between views 1 + 2 and views 1 + 3.
|
void |
setTensor(TrifocalTensor tensor)
Specifies the input tensor.
|
public void setTensor(TrifocalTensor tensor)
tensor - The tensor. Reference is saved but not modifiedpublic void extractEpipoles(georegression.struct.point.Point3D_F64 e2,
georegression.struct.point.Point3D_F64 e3)
e2 - Output: Epipole in image 2. Homogeneous coordinates. Modifiede3 - Output: Epipole in image 3. Homogeneous coordinates. Modifiedpublic void extractCamera(org.ejml.data.DMatrixRMaj P2,
org.ejml.data.DMatrixRMaj P3)
Extract the camera matrices up to a common projective transform.
P2 = [[T1.T2.T3]e3|e2] and P3=[(e3*e2T-I)[T1',T2',T3'|e2|e3]
NOTE: The camera matrix for the first view is assumed to be P1 = [I|0].
P2 - Output: 3x4 camera matrix for views 1 to 2. Modified.P3 - Output: 3x4 camera matrix for views 1 to 3. Modified.public void extractFundmental(org.ejml.data.DMatrixRMaj F21,
org.ejml.data.DMatrixRMaj F31)
Extract the fundamental matrices between views 1 + 2 and views 1 + 3. The returned Fundamental matrices will have the following properties: xiT*Fi*x1 = 0, where i is view 2 or 3.
NOTE: The first camera is assumed to have the camera matrix of P1 = [I|0]. Thus observations in pixels for the first camera will not meet the epipolar constraint when applied to the returned fundamental matrices.
F21=[e2]x *[T1,T2,T3]*e3 and F31 = [e3]x*[T1,T2,T3]*e3
F21 - (Output) Fundamental matrixF31 - (Output) Fundamental matrix