Package boofcv.alg.geo.f
Class FundamentalLinear8
java.lang.Object
boofcv.alg.geo.f.FundamentalLinear
boofcv.alg.geo.f.FundamentalLinear8
Given a set of 8 or more points this class computes the essential or fundamental matrix. The result is often used as an initial guess for more accurate non-linear approaches.
The computed fundamental matrix follow the following convention (with no noise) for the associated pair:
x2T*F*x1 = 0
x1 = keyLoc and x2 = currLoc.
References:
- Y. Ma, S. Soatto, J. Kosecka, and S. S. Sastry, "An Invitation to 3-D Vision" Springer-Verlad, 2004
- R. Hartley, and A. Zisserman, "Multiple View Geometry in Computer Vision", 2nd Ed, Cambridge 2003
-
Field Summary
Fields inherited from class boofcv.alg.geo.f.FundamentalLinear
A, massger, N1, N2, opEssential, opFundamental, solverNull
-
Constructor Summary
ConstructorDescriptionFundamentalLinear8
(boolean computeFundamental) Specifies which type of matrix is to be computed -
Method Summary
Modifier and TypeMethodDescriptionboolean
process
(List<AssociatedPair> points, DMatrixRMaj solution) Computes a fundamental or essential matrix from a set of associated point correspondences.protected boolean
process
(DMatrixRMaj A, DMatrixRMaj F) Computes the SVD of A and extracts the essential/fundamental matrix from its null spaceMethods inherited from class boofcv.alg.geo.f.FundamentalLinear
createA, projectOntoEssential, projectOntoFundamentalSpace
-
Constructor Details
-
FundamentalLinear8
public FundamentalLinear8(boolean computeFundamental) Specifies which type of matrix is to be computed- Parameters:
computeFundamental
- true it computes a fundamental matrix and false for essential
-
-
Method Details
-
process
Computes a fundamental or essential matrix from a set of associated point correspondences.
- Parameters:
points
- List of corresponding image coordinates. In pixel for fundamental matrix or normalized coordinates for essential matrix.- Returns:
- true If successful or false if it failed
-
process
Computes the SVD of A and extracts the essential/fundamental matrix from its null space
-