Package boofcv.alg.geo.trifocal
Class EnforceTrifocalGeometry
- java.lang.Object
-
- boofcv.alg.geo.trifocal.EnforceTrifocalGeometry
-
public class EnforceTrifocalGeometry extends java.lang.ObjectApplies geometric constraints to an estimated trifocal tensor. See page 394 in [1].
References:
- R. Hartley, and A. Zisserman, "Multiple View Geometry in Computer Vision", 2nd Ed, Cambridge 2003
-
-
Field Summary
Fields Modifier and Type Field Description protected org.ejml.data.DMatrixRMajE
-
Constructor Summary
Constructors Constructor Description EnforceTrifocalGeometry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeErrorVector(org.ejml.data.DMatrixRMaj A, org.ejml.data.DMatrixRMaj errors)Returns the algebraic error vector.protected voidconstructE(georegression.struct.point.Point3D_F64 e2, georegression.struct.point.Point3D_F64 e3)The matrix E is a linear system for computing the trifocal tensor.voidextractSolution(TrifocalTensor tensor)Inserts the found trifocal tensor into the provided object.voidprocess(georegression.struct.point.Point3D_F64 e2, georegression.struct.point.Point3D_F64 e3, org.ejml.data.DMatrixRMaj A)Computes a trifocal tensor which minimizes the algebraic error given the two epipoles and the linear constraint matrix.
-
-
-
Method Detail
-
process
public void process(georegression.struct.point.Point3D_F64 e2, georegression.struct.point.Point3D_F64 e3, org.ejml.data.DMatrixRMaj A)Computes a trifocal tensor which minimizes the algebraic error given the two epipoles and the linear constraint matrix. The epipoles are from a previously computed trifocal tensor.- Parameters:
e2- Epipole of first image in the second imagee3- Epipole of first image in the third imageA- Linear constraint matrix for trifocal tensor created from image observations.
-
computeErrorVector
public void computeErrorVector(org.ejml.data.DMatrixRMaj A, org.ejml.data.DMatrixRMaj errors)Returns the algebraic error vector. error = A*U*x. length = number of observations
-
extractSolution
public void extractSolution(TrifocalTensor tensor)
Inserts the found trifocal tensor into the provided object.
-
constructE
protected void constructE(georegression.struct.point.Point3D_F64 e2, georegression.struct.point.Point3D_F64 e3)The matrix E is a linear system for computing the trifocal tensor. The columns are the unknown square matrices from view 2 and 3. The right most column in both projection matrices are the provided epipoles, whose values are inserted into E
-
-