Isis 3 Programmer Reference
MinimumDifference.h
Go to the documentation of this file.
1 #ifndef MinimumDifference_h
2 #define MinimumDifference_h
3 
26 #include "AutoReg.h"
27 
28 namespace Isis {
29  class Pvl;
30  class Chip;
31 
57  class MinimumDifference : public AutoReg {
58  public:
69  MinimumDifference(Pvl &pvl) : AutoReg(pvl) { };
70 
72  virtual ~MinimumDifference() {};
73 
77  virtual double MostLenientTolerance() {
78  return DBL_MAX;
79  }
80 
81  protected:
82  virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch);
83  virtual bool CompareFits(double fit1, double fit2);
84  virtual double IdealFit() const {
85  return 0.0;
86  };
87  virtual QString AlgorithmName() const {
88  return "MinimumDifference";
89  };
90 
91  };
92 };
93 
94 #endif
MinimumDifference(Pvl &pvl)
Construct a MinimumDifference search algorithm.
A small chip of data used for pattern matching.
Definition: Chip.h:102
virtual ~MinimumDifference()
Destructor.
virtual QString AlgorithmName() const
Returns the name of the algorithm.
virtual double IdealFit() const
Returns the ideal (perfect) fit that could be returned by the MatchAlgorithm.
Container for cube-like labels.
Definition: Pvl.h:135
Auto Registration class.
Definition: AutoReg.h:183
virtual double MostLenientTolerance()
Minimum tolerance specific to algorithm.
virtual bool CompareFits(double fit1, double fit2)
This virtual method must return if the 1st fit is equal to or better than the second fit...
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch)
Minimum difference match algorithm.
Minimum difference pattern matching.