Class LeastSquaresFundamental

  • All Implemented Interfaces:
    RefineEpipolar, org.ddogleg.fitting.modelset.ModelFitter<org.ejml.data.DMatrixRMaj,​AssociatedPair>

    public class LeastSquaresFundamental
    extends java.lang.Object
    implements RefineEpipolar
    Improves upon the initial estimate of the Fundamental matrix by minimizing the error.
    • Constructor Summary

      Constructors 
      Constructor Description
      LeastSquaresFundamental​(double convergenceTol, int maxIterations, boolean useSampson)  
      LeastSquaresFundamental​(org.ddogleg.fitting.modelset.ModelCodec<org.ejml.data.DMatrixRMaj> paramModel, double convergenceTol, int maxIterations, boolean useSampson)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean fitModel​(java.util.List<AssociatedPair> obs, org.ejml.data.DMatrixRMaj F, org.ejml.data.DMatrixRMaj refinedF)  
      double getFitScore()  
      • Methods inherited from class java.lang.Object

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

      • LeastSquaresFundamental

        public LeastSquaresFundamental​(double convergenceTol,
                                       int maxIterations,
                                       boolean useSampson)
      • LeastSquaresFundamental

        public LeastSquaresFundamental​(org.ddogleg.fitting.modelset.ModelCodec<org.ejml.data.DMatrixRMaj> paramModel,
                                       double convergenceTol,
                                       int maxIterations,
                                       boolean useSampson)
    • Method Detail

      • fitModel

        public boolean fitModel​(java.util.List<AssociatedPair> obs,
                                org.ejml.data.DMatrixRMaj F,
                                org.ejml.data.DMatrixRMaj refinedF)
        Specified by:
        fitModel in interface org.ddogleg.fitting.modelset.ModelFitter<org.ejml.data.DMatrixRMaj,​AssociatedPair>
      • getFitScore

        public double getFitScore()
        Specified by:
        getFitScore in interface org.ddogleg.fitting.modelset.ModelFitter<org.ejml.data.DMatrixRMaj,​AssociatedPair>