Isis 3 Programmer Reference
MaximumCorrelation.h
1 #ifndef MaximumCorrelation_h
2 #define MaximumCorrelation_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include "AutoReg.h"
11 
12 namespace Isis {
13  class Pvl;
14  class Chip;
15 
36  class MaximumCorrelation : public AutoReg {
37  public:
38  MaximumCorrelation(Pvl &pvl) : AutoReg(pvl) { };
39  virtual ~MaximumCorrelation() {};
40 
41  protected:
42  virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch);
43  virtual bool CompareFits(double fit1, double fit2);
44  virtual double IdealFit() const {
45  return 1.0;
46  };
47  virtual QString AlgorithmName() const {
48  return "MaximumCorrelation";
49  };
50 
51  };
52 };
53 
54 #endif
Isis::MaximumCorrelation::CompareFits
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.
Definition: MaximumCorrelation.cpp:41
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::AutoReg::AutoReg
AutoReg(Pvl &pvl)
Create AutoReg object.
Definition: AutoReg.cpp:66
Isis::AutoReg
Auto Registration class.
Definition: AutoReg.h:167
Isis::MaximumCorrelation::MatchAlgorithm
virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch)
Given two identically sized chips return a double that indicates how well they match.
Definition: MaximumCorrelation.cpp:12
Isis::MaximumCorrelation
Maximum correlation pattern matching.
Definition: MaximumCorrelation.h:36
Isis::MaximumCorrelation::IdealFit
virtual double IdealFit() const
Returns the ideal (perfect) fit that could be returned by the MatchAlgorithm.
Definition: MaximumCorrelation.h:44
Isis::MaximumCorrelation::AlgorithmName
virtual QString AlgorithmName() const
Returns the name of the algorithm.
Definition: MaximumCorrelation.h:47
Isis::Chip
A small chip of data used for pattern matching.
Definition: Chip.h:86
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16