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 java.lang.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 Constructor and Description GenerateHomographyLinear(boolean normalizeInput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanfitModel(java.util.List<AssociatedPair> dataSet, Homography2D_F64 initial, Homography2D_F64 found)Fits a model to a set of points.booleangenerate(java.util.List<AssociatedPair> dataSet, Homography2D_F64 model)Creates a list of hypotheses from the set of sample points.intgetMinimumPoints()The minimum number of points required to fit a data set
-
-
-
Method Detail
-
fitModel
public boolean fitModel(java.util.List<AssociatedPair> dataSet, Homography2D_F64 initial, Homography2D_F64 found)
Description copied from interface:ModelFitterFits a model to a set of points. Note that initial and found can be the same instance.- Specified by:
fitModelin interfaceModelFitter<Homography2D_F64,AssociatedPair>- Parameters:
dataSet- Set of points the model is being fit to.initial- Initial hypothesisfound- The found model. Can be the same instance as initial.- Returns:
- true if a model was found and false if one was not.
-
generate
public boolean generate(java.util.List<AssociatedPair> dataSet, Homography2D_F64 model)
Description copied from interface:ModelGeneratorCreates a list of hypotheses from the set of sample points.- Specified by:
generatein interfaceModelGenerator<Homography2D_F64,AssociatedPair>- Parameters:
dataSet- Set of sample points. Typically the minimum number possible.model- Storage for generated model.- Returns:
- true if a model was generated, otherwise false is none were
-
getMinimumPoints
public int getMinimumPoints()
Description copied from interface:ModelGeneratorThe minimum number of points required to fit a data set- Specified by:
getMinimumPointsin interfaceModelGenerator<Homography2D_F64,AssociatedPair>- Returns:
- Number of points.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG