Class AdjustHomographyMatrix


  • public class AdjustHomographyMatrix
    extends java.lang.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 org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj> svd  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean adjust​(org.ejml.data.DMatrixRMaj H, AssociatedPair p)  
      boolean adjust​(org.ejml.data.DMatrixRMaj H, PairLineNorm p)  
      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.
      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.
      protected boolean findScaleH​(org.ejml.data.DMatrixRMaj H)
      The scale of H is found by computing the second smallest singular value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • svd

        protected org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj> svd
    • Constructor Detail

      • AdjustHomographyMatrix

        public AdjustHomographyMatrix()
    • 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.