Package boofcv.alg.geo.f
Class FundamentalLinear
- java.lang.Object
-
- boofcv.alg.geo.f.FundamentalLinear
-
- Direct Known Subclasses:
FundamentalLinear7,FundamentalLinear8
public abstract class FundamentalLinear extends java.lang.ObjectBase class for linear algebra based algorithms for computing the Fundamental/Essential matrices.
The computed fundamental matrix follow the following convention (with no noise) for the associated pair: x2T*F*x1 = 0
x1 = keyLoc and x2 = currLoc.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.ejml.data.DMatrixRMajAprotected NormalizationPoint2DN1protected NormalizationPoint2DN2protected org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj>solverNullprotected org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj>svdConstraintsprotected org.ejml.data.DMatrixRMajsvdSprotected org.ejml.data.DMatrixRMajsvdUprotected org.ejml.data.DMatrixRMajsvdVprotected org.ejml.data.DMatrixRMajtemp0
-
Constructor Summary
Constructors Constructor Description FundamentalLinear(boolean computeFundamental)Specifies which type of matrix is to be computed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateA(java.util.List<AssociatedPair> points, org.ejml.data.DMatrixRMaj A)Reorganizes the epipolar constraint equation (xT2*F*x1 = 0) such that it is formulated as a standard linear system of the form Ax=0.org.ejml.data.DMatrixRMajgetSvdS()Returns the S from the SVD of F.org.ejml.data.DMatrixRMajgetSvdU()Returns the U from the SVD of F.org.ejml.data.DMatrixRMajgetSvdV()Returns the V from the SVD of F.booleanisComputeFundamental()Returns true if it is computing a fundamental matrix or false if it is an essential matrix.protected booleanprojectOntoEssential(org.ejml.data.DMatrixRMaj E)Projects the found estimate of E onto essential space.protected booleanprojectOntoFundamentalSpace(org.ejml.data.DMatrixRMaj F)Projects the found estimate of F onto Fundamental space.
-
-
-
Field Detail
-
A
protected org.ejml.data.DMatrixRMaj A
-
solverNull
protected org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> solverNull
-
svdConstraints
protected org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj> svdConstraints
-
svdU
protected org.ejml.data.DMatrixRMaj svdU
-
svdS
protected org.ejml.data.DMatrixRMaj svdS
-
svdV
protected org.ejml.data.DMatrixRMaj svdV
-
temp0
protected org.ejml.data.DMatrixRMaj temp0
-
N1
protected NormalizationPoint2D N1
-
N2
protected NormalizationPoint2D N2
-
-
Method Detail
-
projectOntoEssential
protected boolean projectOntoEssential(org.ejml.data.DMatrixRMaj E)
Projects the found estimate of E onto essential space.- Returns:
- true if svd returned true.
-
projectOntoFundamentalSpace
protected boolean projectOntoFundamentalSpace(org.ejml.data.DMatrixRMaj F)
Projects the found estimate of F onto Fundamental space.- Returns:
- true if svd returned true.
-
createA
protected void createA(java.util.List<AssociatedPair> points, org.ejml.data.DMatrixRMaj A)
Reorganizes the epipolar constraint equation (xT2*F*x1 = 0) such that it is formulated as a standard linear system of the form Ax=0. Where A contains the pixel locations and x is the reformatted fundamental matrix.- Parameters:
points- Set of associated points in left and right images.A- Matrix where the reformatted points are written to.
-
getSvdU
public org.ejml.data.DMatrixRMaj getSvdU()
Returns the U from the SVD of F.- Returns:
- U matrix.
-
getSvdS
public org.ejml.data.DMatrixRMaj getSvdS()
Returns the S from the SVD of F.- Returns:
- S matrix.
-
getSvdV
public org.ejml.data.DMatrixRMaj getSvdV()
Returns the V from the SVD of F.- Returns:
- V matrix.
-
isComputeFundamental
public boolean isComputeFundamental()
Returns true if it is computing a fundamental matrix or false if it is an essential matrix.- Returns:
- true for fundamental and false for essential
-
-