7#include "StandardDeviationOperator.h"
22 for(
int i = 0; i < chip.
Samples(); i++) {
23 double pixels[chip.
Lines()];
25 for(
int j = 0; j < chip.
Lines(); j++) {
27 pixels[n] = chip.
GetValue(i + 1, j + 1);
31 stats.AddData(pixels, n);
34 return stats.StandardDeviation();
A small chip of data used for pattern matching.
double GetValue(int sample, int line)
Loads a Chip with a value.
double mdMinDN
Standard Option MinDN.
double mdMaxDN
Standard Option MaxDN.
Container for cube-like labels.
Standard deviation interest operator.
virtual double Interest(Chip &chip)
This method returns the amount of interest for the given chip.
This class is used to accumulate statistics on double arrays.
This is free and unencumbered software released into the public domain.
bool IsSpecial(const double d)
Returns if the input pixel is special.