Package boofcv.alg.geo.h
Class AdjustHomographyMatrix
java.lang.Object
boofcv.alg.geo.h.AdjustHomographyMatrix
public class AdjustHomographyMatrix extends Object
The scale and sign of a homography matrix is ambiguous. This contains functions which pick a reasonable scale
and the correct sign. The second smallest singular value is set to one and the sign is chosen such that
the basic properties work.
-
Field Summary
Fields Modifier and Type Field Description protected SingularValueDecomposition_F64<DMatrixRMaj>
svd
-
Constructor Summary
Constructors Constructor Description AdjustHomographyMatrix()
-
Method Summary
Modifier and Type Method Description boolean
adjust(DMatrixRMaj H, AssociatedPair p)
boolean
adjust(DMatrixRMaj H, PairLineNorm p)
protected void
adjustHomographSign(AssociatedPair p, DMatrixRMaj H)
Since the sign of the homography is ambiguous a point is required to make sure the correct one was selected.protected void
adjustHomographSign(PairLineNorm p, DMatrixRMaj H)
Since the sign of the homography is ambiguous a point is required to make sure the correct one was selected.protected boolean
findScaleH(DMatrixRMaj H)
The scale of H is found by computing the second smallest singular value.
-
Field Details
-
svd
-
-
Constructor Details
-
AdjustHomographyMatrix
public AdjustHomographyMatrix()
-
-
Method Details
-
adjust
-
adjust
-
findScaleH
The scale of H is found by computing the second smallest singular value. -
adjustHomographSign
Since the sign of the homography is ambiguous a point is required to make sure the correct one was selected.- Parameters:
p
- test point, used to determine the sign of the matrix.
-
adjustHomographSign
Since the sign of the homography is ambiguous a point is required to make sure the correct one was selected.- Parameters:
p
- test point, used to determine the sign of the matrix.
-