Package boofcv.alg.geo.h
Class HomographyTotalLeastSquares
- java.lang.Object
-
- boofcv.alg.geo.h.HomographyTotalLeastSquares
-
public class HomographyTotalLeastSquares extends java.lang.ObjectDirect method for computing homography that is more computationally efficient and stable than DLT. Takes advantage of the sparse structure of the matrix found in
DLTto reduce the number of computations and EYM matrix approximation. See the paper [1] for details. Requires at least four points.[1] Harker, Matthew, and Paul O'Leary. "Computation of Homographies." BMVC. 2005.
-
-
Field Summary
Fields Modifier and Type Field Description protected NormalizationPoint2DN1protected NormalizationPoint2DN2
-
Constructor Summary
Constructors Constructor Description HomographyTotalLeastSquares()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprocess(java.util.List<AssociatedPair> points, org.ejml.data.DMatrixRMaj foundH)Computes the homography matrix given a set of observed points in two images.
-
-
-
Field Detail
-
N1
protected NormalizationPoint2D N1
-
N2
protected NormalizationPoint2D N2
-
-
Method Detail
-
process
public boolean process(java.util.List<AssociatedPair> points, org.ejml.data.DMatrixRMaj foundH)
Computes the homography matrix given a set of observed points in two images. A set of
AssociatedPairis passed in. The computed homography 'H' is found such that the attributes 'p1' and 'p2' inAssociatedPairrefers to x1 and x2, respectively, in the equation below:
x2 = H*x1- Parameters:
points- A set of observed image points that are generated from a planar object. Minimum of 4 pairs required.foundH- Output: Storage for the found solution. 3x3 matrix.- Returns:
- true if the calculation was a success.
-
-