Class DetectionAlgoParameters

java.lang.Object
org.eclipse.dawnsci.analysis.api.image.DetectionAlgoParameters

public class DetectionAlgoParameters extends Object
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.
  • 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

      public void setType(DetectionAlgoParameters.DetectionType type)
    • getType