Class DecomposeAbsoluteDualQuadratic


  • public class DecomposeAbsoluteDualQuadratic
    extends java.lang.Object
    Decomposes the absolute quadratic to extract the rectifying homogrpahy H. This is used to go from a projective to metric (calibrated) geometry. See pg 464 in [1].

    Q = H*diag([1 1 1 0])*HT and H = [K 0; -p'*K 1]

    1. R. Hartley, and A. Zisserman, "Multiple View Geometry in Computer Vision", 2nd Ed, Cambridge 2003
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean computeRectifyingHomography​(org.ejml.data.DMatrixRMaj H)
      Computes the rectifying homography from the decomposed Q H = [K 0; -p'*K 1] see Pg 460
      boolean decompose​(org.ejml.data.DMatrix4x4 Q)
      Decomposes the passed in absolute quadratic
      org.ejml.data.DMatrix3x3 getK()  
      org.ejml.data.DMatrix3 getP()
      Coordinate of plane at infinity = pi_inf = (p,1)
      org.ejml.data.DMatrix3x3 getW()  
      void recomputeQ​(org.ejml.data.DMatrix4x4 Q)
      Recomputes Q from w and p.
      • Methods inherited from class java.lang.Object

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

      • DecomposeAbsoluteDualQuadratic

        public DecomposeAbsoluteDualQuadratic()
    • Method Detail

      • decompose

        public boolean decompose​(org.ejml.data.DMatrix4x4 Q)
        Decomposes the passed in absolute quadratic
        Parameters:
        Q - Absolute quadratic
        Returns:
        true if successful or false if it failed
      • recomputeQ

        public void recomputeQ​(org.ejml.data.DMatrix4x4 Q)
        Recomputes Q from w and p.
        Parameters:
        Q - Storage for the recomputed Q
      • computeRectifyingHomography

        public boolean computeRectifyingHomography​(org.ejml.data.DMatrixRMaj H)
        Computes the rectifying homography from the decomposed Q H = [K 0; -p'*K 1] see Pg 460
      • getW

        public org.ejml.data.DMatrix3x3 getW()
      • getK

        public org.ejml.data.DMatrix3x3 getK()
      • getP

        public org.ejml.data.DMatrix3 getP()
        Coordinate of plane at infinity = pi_inf = (p,1)
        Returns:
        Coordinate of plane at infinity