Package boofcv.abst.geo
Class GeoModelEstimatorNto1<Model,Point>
- java.lang.Object
-
- boofcv.abst.geo.GeoModelEstimatorNto1<Model,Point>
-
- All Implemented Interfaces:
GeoModelEstimator1<Model,Point>
- Direct Known Subclasses:
EstimateNto1ofEpipolar,EstimateNto1ofPnP
public abstract class GeoModelEstimatorNto1<Model,Point> extends java.lang.Object implements GeoModelEstimator1<Model,Point>
Wrapper that allowsGeoModelEstimatorNto be used as aGeoModelEstimator1. If more than one solution is found the ambiguity is resolved by computing the distance each hypothesis is away from a set of points not used to compute the model.
-
-
Constructor Summary
Constructors Constructor Description GeoModelEstimatorNto1(GeoModelEstimatorN<Model,Point> alg, org.ddogleg.fitting.modelset.DistanceFromModel<Model,Point> distance, org.ddogleg.struct.FastQueue<Model> solutions, int numTest)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcopy(Model src, Model dst)Copies src into dstintgetMinimumPoints()Minimum number of points required to estimate the model.booleanprocess(java.util.List<Point> points, Model estimatedModel)Estimates the model given a set of observations.
-
-
-
Method Detail
-
process
public boolean process(java.util.List<Point> points, Model estimatedModel)
Description copied from interface:GeoModelEstimator1Estimates the model given a set of observations.- Specified by:
processin interfaceGeoModelEstimator1<Model,Point>- Parameters:
points- Input: Set of observations. Not modified.estimatedModel- Output: Storage for the estimated model. Modified.- Returns:
- true if successful
-
getMinimumPoints
public int getMinimumPoints()
Description copied from interface:GeoModelEstimator1Minimum number of points required to estimate the model.- Specified by:
getMinimumPointsin interfaceGeoModelEstimator1<Model,Point>- Returns:
- Minimum number of points.
-
-