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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfitModel(List<AssociatedPair> dataSet, Homography2D_F64 initial, Homography2D_F64 found) booleangenerate(List<AssociatedPair> dataSet, Homography2D_F64 model) doubleint
-
Constructor Details
-
GenerateHomographyLinear
public GenerateHomographyLinear(boolean normalizeInput)
-
-
Method Details
-
fitModel
public boolean fitModel(List<AssociatedPair> dataSet, Homography2D_F64 initial, Homography2D_F64 found) - Specified by:
fitModelin interfaceModelFitter<Homography2D_F64,AssociatedPair>
-
generate
- Specified by:
generatein interfaceModelGenerator<Homography2D_F64,AssociatedPair>
-
getMinimumPoints
public int getMinimumPoints()- Specified by:
getMinimumPointsin interfaceModelGenerator<Homography2D_F64,AssociatedPair>
-
getFitScore
public double getFitScore()- Specified by:
getFitScorein interfaceModelFitter<Homography2D_F64,AssociatedPair>
-