Isis Developer Reference
MinimumDifference.h
Go to the documentation of this file.
1 #ifndef MinimumDifference_h
2 #define MinimumDifference_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 
41  class MinimumDifference : public AutoReg {
42  public:
53  MinimumDifference(Pvl &pvl) : AutoReg(pvl) { };
54 
56  virtual ~MinimumDifference() {};
57 
61  virtual double MostLenientTolerance() {
62  return DBL_MAX;
63  }
64 
65  protected:
66  virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch);
67  virtual bool CompareFits(double fit1, double fit2);
68  virtual double IdealFit() const {
69  return 0.0;
70  };
71  virtual QString AlgorithmName() const {
72  return "MinimumDifference";
73  };
74 
75  };
76 };
77 
78 #endif
MinimumDifference.h
Isis::MinimumDifference::IdealFit
virtual double IdealFit() const
Returns the ideal (perfect) fit that could be returned by the MatchAlgorithm.
Definition: MinimumDifference.h:68
Isis::MinimumDifference::MostLenientTolerance
virtual double MostLenientTolerance()
Minimum tolerance specific to algorithm.
Definition: MinimumDifference.h:61
Isis::Chip::GetValue
double GetValue(int sample, int line)
Loads a Chip with a value.
Definition: Chip.h:145
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::MinimumDifference::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: MinimumDifference.cpp:60
Isis::MinimumDifference::MatchAlgorithm
virtual double MatchAlgorithm(Chip &pattern, Chip &subsearch)
Minimum difference match algorithm.
Definition: MinimumDifference.cpp:31
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::IsSpecial
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
IString.h
MinimumDifferencePlugin
Isis::AutoReg * MinimumDifferencePlugin(Isis::Pvl &pvl)
Definition: MinimumDifference.cpp:65
Isis::AutoReg
Auto Registration class.
Definition: AutoReg.h:167
Isis::Chip::Lines
int Lines() const
Definition: Chip.h:106
Isis::MinimumDifference
Minimum difference pattern matching.
Definition: MinimumDifference.h:41
Isis::MinimumDifference::MinimumDifference
MinimumDifference(Pvl &pvl)
Construct a MinimumDifference search algorithm.
Definition: MinimumDifference.h:53
std
Namespace for the standard library.
Isis::Message::MissingDelimiter
QString MissingDelimiter(const char delimiter)
This error should be used when a delimiter is missing.
Definition: MissingDelimiter.cpp:15
Isis::Chip
A small chip of data used for pattern matching.
Definition: Chip.h:86
Isis::MinimumDifference::~MinimumDifference
virtual ~MinimumDifference()
Destructor.
Definition: MinimumDifference.h:56
Isis::Chip::Samples
int Samples() const
Definition: Chip.h:99
Isis::MinimumDifference::AlgorithmName
virtual QString AlgorithmName() const
Returns the name of the algorithm.
Definition: MinimumDifference.h:71
AutoReg.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Chip.h
Message.h