Isis Developer Reference
ImageHistogram.h
Go to the documentation of this file.
1#ifndef ImageHistogram_h
2#define ImageHistogram_h
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
16namespace 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
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