52 for(
double l = 1.0; l <= pattern.
Lines(); l++) {
53 for(
double s = 1.0; s <= pattern.
Samples(); s++) {
57 double pdn = pattern.
GetValue(samp, line);
58 double sdn = subsearch.
GetValue(samp, line);
61 diff += fabs(pdn - sdn);
77 return (fit1 <= fit2);
A small chip of data used for pattern matching.
int Samples() const
Return the number of samples in the chip.
bool IsSpecial(const double d)
Returns if the input pixel is special.
Container for cube-like labels.
int Lines() const
Return the number of lines in the chip.
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.
double GetValue(int sample, int line)
Loads a Chip with a value.
Minimum difference pattern matching.