Package boofcv.abst.geo.f
Class LeastSquaresFundamental
java.lang.Object
boofcv.abst.geo.f.LeastSquaresFundamental
- All Implemented Interfaces:
RefineEpipolar
,ModelFitter<DMatrixRMaj,
AssociatedPair>
Improves upon the initial estimate of the Fundamental matrix by minimizing the error.
-
Constructor Summary
ConstructorDescriptionLeastSquaresFundamental
(double convergenceTol, int maxIterations, boolean useSampson) LeastSquaresFundamental
(ModelCodec<DMatrixRMaj> paramModel, double convergenceTol, int maxIterations, boolean useSampson) -
Method Summary
Modifier and TypeMethodDescriptionboolean
fitModel
(List<AssociatedPair> obs, DMatrixRMaj F, DMatrixRMaj refinedF) double
-
Constructor Details
-
LeastSquaresFundamental
public LeastSquaresFundamental(double convergenceTol, int maxIterations, boolean useSampson) -
LeastSquaresFundamental
public LeastSquaresFundamental(ModelCodec<DMatrixRMaj> paramModel, double convergenceTol, int maxIterations, boolean useSampson)
-
-
Method Details
-
fitModel
- Specified by:
fitModel
in interfaceModelFitter<DMatrixRMaj,
AssociatedPair>
-
getFitScore
public double getFitScore()- Specified by:
getFitScore
in interfaceModelFitter<DMatrixRMaj,
AssociatedPair>
-