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.StoppingConditioninit in interface RANSAC.StoppingConditiondata - The data being fittedmodel - The model to fitpublic boolean shouldStopIterations(int numInliers)
RANSAC.StoppingConditionshouldStopIterations in interface RANSAC.StoppingConditionnumInliers - number of inliers in this iterationpublic boolean finalFitCondition(int numInliers)
RANSAC.StoppingConditionfinalFitCondition in interface RANSAC.StoppingConditionnumInliers - number of inliers in the final model