ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Classes | Enumerations | Functions
SampleConsensus Namespace Reference

Classes

class  AtEstimator
 
class  AtSampleConsensus
 Perform a sample consensus on a cloud of AtHits. More...
 

Enumerations

enum  Estimators {
  Estimators::kRANSAC, Estimators::kLMedS, Estimators::kMLESAC, Estimators::kWRANSAC,
  Estimators::kChi2, Estimators::kYRANSAC
}
 Estimators for AtSampleConsensus. More...
 

Functions

int EvaluateRansac (AtPatterns::AtPattern *model, const std::vector< const AtHit * > &hitArray, double distanceThreshold)
 Implementation of RANSAC estimator. More...
 
int EvaluateYRansac (AtPatterns::AtPattern *model, const std::vector< const AtHit * > &hitArray, double distanceThreshold)
 Implementation of RANSAC estimator ignoring beam component of y. More...
 
int EvaluateChi2 (AtPatterns::AtPattern *model, const std::vector< const AtHit * > &hitArray, double distanceThreshold)
 Implementation of estimator that minimizes chi2. More...
 
int EvaluateMlesac (AtPatterns::AtPattern *model, const std::vector< const AtHit * > &hitArray, double distanceThreshold)
 Implementation of MLESAC estimator. More...
 
int EvaluateLmeds (AtPatterns::AtPattern *model, const std::vector< const AtHit * > &hitArray, double distanceThreshold)
 Implementation of LMedS estimator. More...
 
int EvaluateWeightedRansac (AtPatterns::AtPattern *model, const std::vector< const AtHit * > &hitArray, double distanceThreshold)
 Implementation of RANSAC estimator using charge weighting. More...
 

Function Documentation

◆ EvaluateChi2()

int SampleConsensus::EvaluateChi2 ( AtPatterns::AtPattern model,
const std::vector< const AtHit * > &  hitArray,
double  distanceThreshold 
)

Implementation of estimator that minimizes chi2.

Used to minimize avg(error^2) for all inliers.

Definition at line 13 of file AtEstimatorMethods.cxx.

◆ EvaluateLmeds()

int SampleConsensus::EvaluateLmeds ( AtPatterns::AtPattern model,
const std::vector< const AtHit * > &  hitArray,
double  distanceThreshold 
)

Implementation of LMedS estimator.

Definition at line 126 of file AtEstimatorMethods.cxx.

◆ EvaluateMlesac()

int SampleConsensus::EvaluateMlesac ( AtPatterns::AtPattern model,
const std::vector< const AtHit * > &  hitArray,
double  distanceThreshold 
)

Implementation of MLESAC estimator.

Definition at line 68 of file AtEstimatorMethods.cxx.

◆ EvaluateRansac()

int SampleConsensus::EvaluateRansac ( AtPatterns::AtPattern model,
const std::vector< const AtHit * > &  hitArray,
double  distanceThreshold 
)

Implementation of RANSAC estimator.

Maximizes the number of inliers.

Definition at line 31 of file AtEstimatorMethods.cxx.

◆ EvaluateWeightedRansac()

int SampleConsensus::EvaluateWeightedRansac ( AtPatterns::AtPattern model,
const std::vector< const AtHit * > &  hitArray,
double  distanceThreshold 
)

Implementation of RANSAC estimator using charge weighting.

Definition at line 142 of file AtEstimatorMethods.cxx.

◆ EvaluateYRansac()

int SampleConsensus::EvaluateYRansac ( AtPatterns::AtPattern model,
const std::vector< const AtHit * > &  hitArray,
double  distanceThreshold 
)

Implementation of RANSAC estimator ignoring beam component of y.

Maximizes the number of inliers on the non-beam rays of the Y pattern.

Definition at line 47 of file AtEstimatorMethods.cxx.