public static class RANSAC.ProbabilisticMinInliersStoppingCondition extends Object implements RANSAC.StoppingCondition
Constructor and Description |
---|
ProbabilisticMinInliersStoppingCondition(double desiredErrorProbability)
Constructor with defaults for bad inlier probability and percentage
inliers.
|
ProbabilisticMinInliersStoppingCondition(double desiredErrorProbability,
double inlierIsBadProbability,
double percentageInliers)
Default constructor.
|
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 ProbabilisticMinInliersStoppingCondition(double desiredErrorProbability, double inlierIsBadProbability, double percentageInliers)
desiredErrorProbability
- The desired error rateinlierIsBadProbability
- The probability an inlier is badpercentageInliers
- The percentage of inliers in the datapublic ProbabilisticMinInliersStoppingCondition(double desiredErrorProbability)
desiredErrorProbability
- The desired error ratepublic boolean init(List<?> data, EstimatableModel<?,?> model)
RANSAC.StoppingCondition
init
in interface RANSAC.StoppingCondition
data
- The data being fittedmodel
- The model to fitpublic boolean finalFitCondition(int numInliers)
RANSAC.StoppingCondition
finalFitCondition
in interface RANSAC.StoppingCondition
numInliers
- number of inliers in the final modelpublic boolean shouldStopIterations(int numInliers)
RANSAC.StoppingCondition
shouldStopIterations
in interface RANSAC.StoppingCondition
numInliers
- number of inliers in this iteration