Package org.ddogleg.fitting.modelset
Interface ModelMatcherPost<Model,Point>
- All Superinterfaces:
ModelMatcher<Model,Point>
- All Known Implementing Classes:
LeastMedianOfSquares,LeastMedianOfSquares_MT,Ransac,Ransac_MT
Extension of
ModelMatcher where the models are specified after construction.-
Method Summary
Modifier and TypeMethodDescriptionvoidsetModel(Factory<ModelGenerator<Model, Point>> factoryGenerator, Factory<DistanceFromModel<Model, Point>> factoryDistance) Specifies the internal model.Methods inherited from interface org.ddogleg.fitting.modelset.ModelMatcher
getFitQuality, getInputIndex, getMatchSet, getMinimumSize, getModelParameters, getModelType, getPointType, process, reset
-
Method Details
-
setModel
void setModel(Factory<ModelGenerator<Model, Point>> factoryGenerator, Factory<DistanceFromModel<Model, Point>> factoryDistance) Specifies the internal model. Factories are provided since each thread might need its own unique instance of the generator and distance function if they are not thread safe.- Parameters:
factoryGenerator-ModelGeneratorfactoryDistance-DistanceFromModel
-