Class Ransac_MT<Model,Point>
java.lang.Object
org.ddogleg.fitting.modelset.ransac.Ransac<Model,Point>
org.ddogleg.fitting.modelset.ransac.Ransac_MT<Model,Point>
- All Implemented Interfaces:
InlierThreshold
,ModelMatcher<Model,
,Point> ModelMatcherPost<Model,
Point>
Concurrent implementation of
Ransac
. It will produce identical results when given the same seed.-
Nested Class Summary
Nested classes/interfaces inherited from class org.ddogleg.fitting.modelset.ransac.Ransac
Ransac.InitializeModels<Model,
Point>, Ransac.TrialHelper -
Field Summary
Fields inherited from class org.ddogleg.fitting.modelset.ransac.Ransac
helper, initializeModels, masterModelManager, maxIterations, randSeed, sampleSize, thresholdFit, trialRNG
-
Constructor Summary
ConstructorDescriptionRansac_MT
(long randSeed, int maxIterations, double thresholdFit, ModelManager<Model> modelManager, Class<Point> pointType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Finds a set of points from the provided list that are a good fit for the internal model and computes the fit parameters for the model.void
setModel
(Factory<ModelGenerator<Model, Point>> factoryGenerator, Factory<DistanceFromModel<Model, Point>> factoryDistance) Specifies the internal model.Methods inherited from class org.ddogleg.fitting.modelset.ransac.Ransac
addSelect, checkTrialGenerators, getFitQuality, getInputIndex, getMatchSet, getMaxIterations, getMinimumSize, getModelParameters, getModelType, getPointType, getThresholdFit, randomDraw, randomDraw, reset, setMaxIterations, setSampleSize, setThresholdFit
-
Constructor Details
-
Ransac_MT
public Ransac_MT(long randSeed, int maxIterations, double thresholdFit, ModelManager<Model> modelManager, Class<Point> pointType)
-
-
Method Details
-
process
Description copied from interface:ModelMatcher
Finds a set of points from the provided list that are a good fit for the internal model and computes the fit parameters for the model. -
setModel
public void setModel(Factory<ModelGenerator<Model, Point>> factoryGenerator, Factory<DistanceFromModel<Model, Point>> factoryDistance) Description copied from interface:ModelMatcherPost
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.- Specified by:
setModel
in interfaceModelMatcherPost<Model,
Point> - Overrides:
setModel
in classRansac<Model,
Point> - Parameters:
factoryGenerator
-ModelGenerator
factoryDistance
-DistanceFromModel
-