Class FundamentalLinear

  • Direct Known Subclasses:
    FundamentalLinear7, FundamentalLinear8

    public abstract class FundamentalLinear
    extends java.lang.Object

    Base class for linear algebra based algorithms for computing the Fundamental/Essential matrices.

    The computed fundamental matrix follow the following convention (with no noise) for the associated pair: x2T*F*x1 = 0
    x1 = keyLoc and x2 = currLoc.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.ejml.data.DMatrixRMaj A  
      protected NormalizationPoint2D N1  
      protected NormalizationPoint2D N2  
      protected org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> solverNull  
      protected org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj> svdConstraints  
      protected org.ejml.data.DMatrixRMaj svdS  
      protected org.ejml.data.DMatrixRMaj svdU  
      protected org.ejml.data.DMatrixRMaj svdV  
      protected org.ejml.data.DMatrixRMaj temp0  
    • Constructor Summary

      Constructors 
      Constructor Description
      FundamentalLinear​(boolean computeFundamental)
      Specifies which type of matrix is to be computed
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createA​(java.util.List<AssociatedPair> points, org.ejml.data.DMatrixRMaj A)
      Reorganizes the epipolar constraint equation (xT2*F*x1 = 0) such that it is formulated as a standard linear system of the form Ax=0.
      org.ejml.data.DMatrixRMaj getSvdS()
      Returns the S from the SVD of F.
      org.ejml.data.DMatrixRMaj getSvdU()
      Returns the U from the SVD of F.
      org.ejml.data.DMatrixRMaj getSvdV()
      Returns the V from the SVD of F.
      boolean isComputeFundamental()
      Returns true if it is computing a fundamental matrix or false if it is an essential matrix.
      protected boolean projectOntoEssential​(org.ejml.data.DMatrixRMaj E)
      Projects the found estimate of E onto essential space.
      protected boolean projectOntoFundamentalSpace​(org.ejml.data.DMatrixRMaj F)
      Projects the found estimate of F onto Fundamental space.
      • Methods inherited from class java.lang.Object

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

      • A

        protected org.ejml.data.DMatrixRMaj A
      • solverNull

        protected org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> solverNull
      • svdConstraints

        protected org.ejml.interfaces.decomposition.SingularValueDecomposition_F64<org.ejml.data.DMatrixRMaj> svdConstraints
      • svdU

        protected org.ejml.data.DMatrixRMaj svdU
      • svdS

        protected org.ejml.data.DMatrixRMaj svdS
      • svdV

        protected org.ejml.data.DMatrixRMaj svdV
      • temp0

        protected org.ejml.data.DMatrixRMaj temp0
    • Constructor Detail

      • FundamentalLinear

        public FundamentalLinear​(boolean computeFundamental)
        Specifies which type of matrix is to be computed
        Parameters:
        computeFundamental - true it computes a fundamental matrix and false for essential
    • Method Detail

      • projectOntoEssential

        protected boolean projectOntoEssential​(org.ejml.data.DMatrixRMaj E)
        Projects the found estimate of E onto essential space.
        Returns:
        true if svd returned true.
      • projectOntoFundamentalSpace

        protected boolean projectOntoFundamentalSpace​(org.ejml.data.DMatrixRMaj F)
        Projects the found estimate of F onto Fundamental space.
        Returns:
        true if svd returned true.
      • createA

        protected void createA​(java.util.List<AssociatedPair> points,
                               org.ejml.data.DMatrixRMaj A)
        Reorganizes the epipolar constraint equation (xT2*F*x1 = 0) such that it is formulated as a standard linear system of the form Ax=0. Where A contains the pixel locations and x is the reformatted fundamental matrix.
        Parameters:
        points - Set of associated points in left and right images.
        A - Matrix where the reformatted points are written to.
      • getSvdU

        public org.ejml.data.DMatrixRMaj getSvdU()
        Returns the U from the SVD of F.
        Returns:
        U matrix.
      • getSvdS

        public org.ejml.data.DMatrixRMaj getSvdS()
        Returns the S from the SVD of F.
        Returns:
        S matrix.
      • getSvdV

        public org.ejml.data.DMatrixRMaj getSvdV()
        Returns the V from the SVD of F.
        Returns:
        V matrix.
      • isComputeFundamental

        public boolean isComputeFundamental()
        Returns true if it is computing a fundamental matrix or false if it is an essential matrix.
        Returns:
        true for fundamental and false for essential