13 double gradient = 0.0;
15 int height = chip.
Lines();
19 while(width > 1 && height > 1) {
20 for(
int i = 1; i <= width; i++) {
21 pix1 = chip.
GetValue(i + offset, 1 + offset);
22 pix2 = chip.
GetValue(width - i + 1 + offset, height + offset);
26 for(
int i = 2; i < height; i++) {
27 pix1 = chip.
GetValue(1 + offset, i + offset);
28 pix2 = chip.
GetValue(width + offset, height - i + 1 + offset);
A small chip of data used for pattern matching.
bool ValidDnValue(double pdDnValue)
Validate whether the DN Value is in the set Range.
int Samples() const
Return the number of samples in the chip.
virtual double Interest(Chip &chip)
This method returns the amount of interest for the given chip.
Container for cube-like labels.
int Lines() const
Return the number of lines in the chip.
double GetValue(int sample, int line)
Loads a Chip with a value.
Gradient interest operator.