public static class RANSAC.BestFitStoppingCondition extends Object implements RANSAC.StoppingCondition
Constructor and Description |
---|
BestFitStoppingCondition() |
Modifier and Type | Method and Description |
---|---|
boolean |
finalFitCondition(int numInliers)
Should the model be considered to fit after the final iteration has
passed?
|
boolean |
init(List<?> data,
EstimatableModel<?,?> model)
Initialise the stopping condition if necessary.
|
boolean |
shouldStopIterations(int numInliers)
Should we stop iterating and return the model?
|
public BestFitStoppingCondition()
public boolean init(List<?> data, EstimatableModel<?,?> model)
RANSAC.StoppingCondition
init
in interface RANSAC.StoppingCondition
data
- The data being fittedmodel
- The model to fitpublic boolean shouldStopIterations(int numInliers)
RANSAC.StoppingCondition
shouldStopIterations
in interface RANSAC.StoppingCondition
numInliers
- number of inliers in this iterationpublic boolean finalFitCondition(int numInliers)
RANSAC.StoppingCondition
finalFitCondition
in interface RANSAC.StoppingCondition
numInliers
- number of inliers in the final model