Isis 3.0 Programmer Reference
Back | Home
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.
virtual double IdealFit() const
Returns the ideal (perfect) fit that could be returned by the MatchAlgorithm.
A small chip of data used for pattern matching.
Definition: Chip.h:101
virtual ~MinimumDifference()
Destructor.
virtual QString AlgorithmName() const
Returns the name of the algorithm.
Container for cube-like labels.
Definition: Pvl.h:135
Auto Registration class.
Definition: AutoReg.h:177
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...
virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch)
Minimum difference match algorithm.
Minimum difference pattern matching.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:23:34