Isis 3 Programmer Reference
MaximumCorrelation.h
Go to the documentation of this file.
1 #ifndef MaximumCorrelation_h
2 #define MaximumCorrelation_h
3 
26 #include "AutoReg.h"
27 
28 namespace Isis {
29  class Pvl;
30  class Chip;
31 
52  class MaximumCorrelation : public AutoReg {
53  public:
54  MaximumCorrelation(Pvl &pvl) : AutoReg(pvl) { };
55  virtual ~MaximumCorrelation() {};
56 
57  protected:
58  virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch);
59  virtual bool CompareFits(double fit1, double fit2);
60  virtual double IdealFit() const {
61  return 1.0;
62  };
63  virtual QString AlgorithmName() const {
64  return "MaximumCorrelation";
65  };
66 
67  };
68 };
69 
70 #endif
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...
A small chip of data used for pattern matching.
Definition: Chip.h:102
virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch)
Given two identically sized chips return a double that indicates how well they match.
AutoReg(Pvl &pvl)
Create AutoReg object.
Definition: AutoReg.cpp:79
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 QString AlgorithmName() const
Returns the name of the algorithm.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Maximum correlation pattern matching.