public static class RANSAC.NumberInliersStoppingCondition extends Object implements RANSAC.StoppingCondition
Constructor and Description |
---|
NumberInliersStoppingCondition(int limit)
Construct the stopping condition with the given threshold on the
number of data points which must match for a model to be considered a
fit.
|
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 NumberInliersStoppingCondition(int limit)
limit
- the thresholdpublic 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