Package boofcv.alg.geo.h
Class AdjustHomographyMatrix
- java.lang.Object
-
- boofcv.alg.geo.h.AdjustHomographyMatrix
-
public class AdjustHomographyMatrix extends java.lang.ObjectThe 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 org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj>svd
-
Constructor Summary
Constructors Constructor Description AdjustHomographyMatrix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadjust(org.ejml.data.DMatrixRMaj H, AssociatedPair p)booleanadjust(org.ejml.data.DMatrixRMaj H, PairLineNorm p)protected voidadjustHomographSign(AssociatedPair p, org.ejml.data.DMatrixRMaj H)Since the sign of the homography is ambiguous a point is required to make sure the correct one was selected.protected voidadjustHomographSign(PairLineNorm p, org.ejml.data.DMatrixRMaj H)Since the sign of the homography is ambiguous a point is required to make sure the correct one was selected.protected booleanfindScaleH(org.ejml.data.DMatrixRMaj H)The scale of H is found by computing the second smallest singular value.
-
-
-
Method Detail
-
adjust
public boolean adjust(org.ejml.data.DMatrixRMaj H, AssociatedPair p)
-
adjust
public boolean adjust(org.ejml.data.DMatrixRMaj H, PairLineNorm p)
-
findScaleH
protected boolean findScaleH(org.ejml.data.DMatrixRMaj H)
The scale of H is found by computing the second smallest singular value.
-
adjustHomographSign
protected void adjustHomographSign(AssociatedPair p, org.ejml.data.DMatrixRMaj H)
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
protected void adjustHomographSign(PairLineNorm p, org.ejml.data.DMatrixRMaj H)
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.
-
-