Class LeastSquaresHomography

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

    public class LeastSquaresHomography
    extends java.lang.Object
    implements RefineEpipolar
    Improves upon the initial estimate of the Homography matrix by minimizing residuals.
    • Constructor Detail

      • LeastSquaresHomography

        public LeastSquaresHomography​(double convergenceTol,
                                      int maxIterations,
                                      ModelObservationResidualN residuals)
    • 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>