1#ifndef ImageHistogram_h
2#define ImageHistogram_h
45 double startSample = 1.0,
double startLine = 1.0,
46 double endSample =
Null,
double endLine =
Null,
int bins = 0,
47 bool addCubeData =
false);
51 virtual void AddData(
const double *data,
const unsigned int count);
52 virtual void AddData(
const double data);
53 virtual void RemoveData(
const double *data,
const unsigned int count);
55 virtual void BinRange(
const int index,
double &low,
double &high)
const;
58 void InitializeFromCube(
Cube &cube,
int statsBand,
59 Progress *progress,
int nbins,
double startSample,
double startLine,
60 double endSample,
double endLine);
IO Handler for Isis Cubes.
Definition Cube.h:168
Container of a cube histogram.
Definition Histogram.h:74
Container of a cube histogram.
Definition ImageHistogram.h:40
ImageHistogram(double minimum, double maximum, int bins=1024)
Constructs a histogram object.
Definition ImageHistogram.cpp:30
virtual void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
Definition ImageHistogram.cpp:228
virtual void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the histogram counters.
Definition ImageHistogram.cpp:284
~ImageHistogram()
Destructs a histogram object.
Definition ImageHistogram.cpp:217
virtual void BinRange(const int index, double &low, double &high) const
Returns the left edge and right edge values of a bin.
Definition ImageHistogram.cpp:318
Program progress reporter.
Definition Progress.h:42
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
const double Null
Value for an Isis Null pixel.
Definition SpecialPixel.h:95