Package boofcv.abst.geo.f
Class LeastSquaresFundamental
- java.lang.Object
-
- boofcv.abst.geo.f.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 booleanfitModel(java.util.List<AssociatedPair> obs, org.ejml.data.DMatrixRMaj F, org.ejml.data.DMatrixRMaj refinedF)doublegetFitScore()
-
-
-
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:
fitModelin interfaceorg.ddogleg.fitting.modelset.ModelFitter<org.ejml.data.DMatrixRMaj,AssociatedPair>
-
getFitScore
public double getFitScore()
- Specified by:
getFitScorein interfaceorg.ddogleg.fitting.modelset.ModelFitter<org.ejml.data.DMatrixRMaj,AssociatedPair>
-
-