Package boofcv.alg.geo.robust
Class GenerateHomographyLinear
java.lang.Object
boofcv.alg.geo.robust.GenerateHomographyLinear
- All Implemented Interfaces:
ModelFitter<Homography2D_F64,
,AssociatedPair> ModelGenerator<Homography2D_F64,
AssociatedPair>
public class GenerateHomographyLinear
extends Object
implements ModelGenerator<Homography2D_F64,AssociatedPair>, ModelFitter<Homography2D_F64,AssociatedPair>
Fits a homography to the observed points using linear algebra. This provides an approximate solution.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
fitModel
(List<AssociatedPair> dataSet, Homography2D_F64 initial, Homography2D_F64 found) boolean
generate
(List<AssociatedPair> dataSet, Homography2D_F64 model) double
int
-
Constructor Details
-
GenerateHomographyLinear
public GenerateHomographyLinear(boolean normalizeInput)
-
-
Method Details
-
fitModel
public boolean fitModel(List<AssociatedPair> dataSet, Homography2D_F64 initial, Homography2D_F64 found) - Specified by:
fitModel
in interfaceModelFitter<Homography2D_F64,
AssociatedPair>
-
generate
- Specified by:
generate
in interfaceModelGenerator<Homography2D_F64,
AssociatedPair>
-
getMinimumPoints
public int getMinimumPoints()- Specified by:
getMinimumPoints
in interfaceModelGenerator<Homography2D_F64,
AssociatedPair>
-
getFitScore
public double getFitScore()- Specified by:
getFitScore
in interfaceModelFitter<Homography2D_F64,
AssociatedPair>
-