Isis 3 Programmer Reference
ImageHistogram.h
1 #ifndef ImageHistogram_h
2 #define ImageHistogram_h
3 
9 #include "Cube.h"
10 #include "Message.h"
11 #include "IException.h"
12 #include "Progress.h"
13 #include "Histogram.h"
14 #include "ImageHistogram.h"
15 
16 namespace Isis {
17  class ControlNet;
18  class ControlMeasure;
40  class ImageHistogram : public Histogram {
41  public:
42  ImageHistogram(double minimum, double maximum,
43  int bins = 1024);
44  ImageHistogram(Cube &cube, int statsBand, Progress *progress = NULL,
45  double startSample = 1.0, double startLine = 1.0,
46  double endSample = Null, double endLine = Null, int bins = 0,
47  bool addCubeData = false);
48 
50 
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);
54 
55  virtual void BinRange(const int index, double &low, double &high) const;
56 
57  private:
58  void InitializeFromCube(Cube &cube, int statsBand,
59  Progress *progress, int nbins, double startSample, double startLine,
60  double endSample, double endLine);
61  };
62 };
63 
64 #endif
Isis::ImageHistogram::AddData
virtual void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
Definition: ImageHistogram.cpp:228
Isis::ImageHistogram::ImageHistogram
ImageHistogram(double minimum, double maximum, int bins=1024)
Constructs a histogram object.
Definition: ImageHistogram.cpp:30
Isis::ImageHistogram::RemoveData
virtual void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the histogram counters.
Definition: ImageHistogram.cpp:284
Isis::ImageHistogram
Container of a cube histogram.
Definition: ImageHistogram.h:40
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::ImageHistogram::~ImageHistogram
~ImageHistogram()
Destructs a histogram object.
Definition: ImageHistogram.cpp:217
Isis::Progress
Program progress reporter.
Definition: Progress.h:42
Isis::Null
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
Isis::Histogram
Container of a cube histogram.
Definition: Histogram.h:74
Isis::ImageHistogram::BinRange
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
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16