Package boofcv.alg.geo.trifocal
Class TrifocalLinearPoint7
- java.lang.Object
-
- boofcv.alg.geo.trifocal.TrifocalLinearPoint7
-
- Direct Known Subclasses:
TrifocalAlgebraicPoint7
public class TrifocalLinearPoint7 extends java.lang.ObjectEstimates the
TrifocalTensorusing a linear algorithm from 7 or more image points correspondences from three views, see page 394 of [1] for details. After an initial linear solution has been computed it is improved upon by applying geometric constraints. Note that the solution will not be optimal in a geometric or algebraic sense, but can be used as an initial estimate for refinement algorithms.References:
- R. Hartley, and A. Zisserman, "Multiple View Geometry in Computer Vision", 2nd Ed, Cambridge 2003
- See Also:
EnforceTrifocalGeometry
-
-
Field Summary
Fields Modifier and Type Field Description protected org.ejml.data.DMatrixRMajAprotected georegression.struct.point.Point3D_F64e2protected georegression.struct.point.Point3D_F64e3protected EnforceTrifocalGeometryenforceprotected TrifocalExtractGeometriesextractEpipolesprotected NormalizationPoint2DN1protected NormalizationPoint2DN2protected NormalizationPoint2DN3protected georegression.struct.point.Point2D_F64p1_normprotected georegression.struct.point.Point2D_F64p2_normprotected georegression.struct.point.Point2D_F64p3_normprotected TrifocalTensorsolutionNprotected org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj>svdNullprotected org.ejml.data.DMatrixRMajvectorizedSolution
-
Constructor Summary
Constructors Constructor Description TrifocalLinearPoint7()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateLinearSystem(java.util.List<AssociatedTriple> observations)Constructs the linear matrix that describes from the 3-point constraint with linear dependent rows removedbooleanprocess(java.util.List<AssociatedTriple> observations, TrifocalTensor solution)Estimates the trifocal tensor given the set of observationsprotected voidremoveNormalization(TrifocalTensor solution)Translates the trifocal tensor back into regular coordinate systemprotected booleansolveLinearSystem()Computes the null space of the linear system to find the trifocal tensor
-
-
-
Field Detail
-
solutionN
protected TrifocalTensor solutionN
-
N1
protected NormalizationPoint2D N1
-
N2
protected NormalizationPoint2D N2
-
N3
protected NormalizationPoint2D N3
-
A
protected org.ejml.data.DMatrixRMaj A
-
svdNull
protected org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj> svdNull
-
vectorizedSolution
protected org.ejml.data.DMatrixRMaj vectorizedSolution
-
p1_norm
protected georegression.struct.point.Point2D_F64 p1_norm
-
p2_norm
protected georegression.struct.point.Point2D_F64 p2_norm
-
p3_norm
protected georegression.struct.point.Point2D_F64 p3_norm
-
enforce
protected EnforceTrifocalGeometry enforce
-
extractEpipoles
protected TrifocalExtractGeometries extractEpipoles
-
e2
protected georegression.struct.point.Point3D_F64 e2
-
e3
protected georegression.struct.point.Point3D_F64 e3
-
-
Method Detail
-
process
public boolean process(java.util.List<AssociatedTriple> observations, TrifocalTensor solution)
Estimates the trifocal tensor given the set of observations- Parameters:
observations- Set of observationssolution- Output: Where the solution is written to- Returns:
- true if successful and false if it fails
-
createLinearSystem
protected void createLinearSystem(java.util.List<AssociatedTriple> observations)
Constructs the linear matrix that describes from the 3-point constraint with linear dependent rows removed
-
solveLinearSystem
protected boolean solveLinearSystem()
Computes the null space of the linear system to find the trifocal tensor
-
removeNormalization
protected void removeNormalization(TrifocalTensor solution)
Translates the trifocal tensor back into regular coordinate system
-
-