Class DetectionAlgoParameters
java.lang.Object
org.eclipse.dawnsci.analysis.api.image.DetectionAlgoParameters
Parameter class used to contain the necessary parameters required by the detection algorithm. For now RANSAC and
Least Median of Squares algorithms (found in BoofCV) are supported.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDetectionAlgoParameters(int randSeed, int maxIterations, double thresholdFit, int inlierFraction, DetectionAlgoParameters.DetectionType type) -
Method Summary
Modifier and TypeMethodDescriptionintintintdoublegetType()voidsetInlierFraction(int inlierFraction) voidsetMaxIterations(int maxIterations) voidsetRandSeed(int randSeed) voidsetThresholdFit(double thresholdFit) void
-
Constructor Details
-
DetectionAlgoParameters
public DetectionAlgoParameters(int randSeed, int maxIterations, double thresholdFit, int inlierFraction, DetectionAlgoParameters.DetectionType type) - Parameters:
randSeed- The random seed used by the random number generator.maxIterations- The maximum number of iterations the chosen algorithm will perform.thresholdFit- How close of a fit a points needs to be to the model to be considered a fit.inlierFraction- Data which is this fraction or lower is considered an inlier and used to recompute model parameters at the end. Set to 0 to turn off. Domain: 0 to 1.type- Type of iterative algorithm to use
-
-
Method Details
-
getRandSeed
public int getRandSeed() -
setRandSeed
public void setRandSeed(int randSeed) -
getMaxIterations
public int getMaxIterations() -
setMaxIterations
public void setMaxIterations(int maxIterations) -
getThresholdFit
public double getThresholdFit() -
setThresholdFit
public void setThresholdFit(double thresholdFit) -
getInlierFraction
public int getInlierFraction() -
setInlierFraction
public void setInlierFraction(int inlierFraction) -
setType
-
getType
-