|
Isis Developer Reference
|
Go to the documentation of this file. 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);
void SetBasePosition(const int start_sample, const int start_line, const int start_band)
This method is used to set the base position of the shape buffer.
Definition: Brick.h:120
double base() const
Returns the base value for converting 8-bit/16-bit pixels to 32-bit.
Definition: Cube.cpp:1427
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
virtual void AddData(const double *data, const unsigned int count)
Add an array of doubles to the histogram counters.
Definition: ImageHistogram.cpp:228
void CheckStatus()
Checks and updates the status.
Definition: Progress.cpp:105
bool InRange(const double value)
Definition: Statistics.cpp:279
void read(Blob &blob, const std::vector< PvlKeyword > keywords=std::vector< PvlKeyword >()) const
This method will read data from the specified Blob object.
Definition: Cube.cpp:807
void SetBins(const int bins)
Change the number of bins in the histogram and reset counters.
Definition: Histogram.cpp:219
double BinRangeStart() const
Definition: Histogram.h:109
void SetMaximumSteps(const int steps)
This sets the maximum number of steps in the process.
Definition: Progress.cpp:85
double * DoubleBuffer() const
Returns the value of the shape buffer.
Definition: Buffer.h:138
@ UnsignedWord
Definition: PixelType.h:31
@ SignedWord
Definition: PixelType.h:32
Buffer for containing a three dimensional section of an image.
Definition: Brick.h:45
ImageHistogram(double minimum, double maximum, int bins=1024)
Constructs a histogram object.
Definition: ImageHistogram.cpp:30
void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the accumulators and counters.
Definition: Statistics.cpp:206
virtual void RemoveData(const double *data, const unsigned int count)
Remove an array of doubles from the histogram counters.
Definition: ImageHistogram.cpp:284
double multiplier() const
Returns the multiplier value for converting 8-bit/16-bit pixels to 32-bit.
Definition: Cube.cpp:1748
int lineCount() const
Definition: Cube.cpp:1734
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void SetValidRange(const double minimum=Isis::ValidMinimum, const double maximum=Isis::ValidMaximum)
Changes the range of the bins.
Definition: Histogram.cpp:192
void SetText(const QString &text)
Changes the value of the text string reported just before 0% processed.
Definition: Progress.cpp:61
std::vector< BigInt > p_bins
The array of counts.
Definition: Histogram.h:121
int sampleCount() const
Definition: Cube.cpp:1807
Container of a cube histogram.
Definition: ImageHistogram.h:40
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis exception class.
Definition: IException.h:91
virtual int bandCount() const
Returns the number of virtual bands for the cube.
Definition: Cube.cpp:1410
~ImageHistogram()
Destructs a histogram object.
Definition: ImageHistogram.cpp:217
Program progress reporter.
Definition: Progress.h:42
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
@ UnsignedInteger
Definition: PixelType.h:33
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Namespace for the standard library.
PixelType pixelType() const
Definition: Cube.cpp:1758
Container of a cube histogram.
Definition: Histogram.h:74
bool IsValidPixel(const double d)
Returns if the input pixel is valid.
Definition: SpecialPixel.h:223
Statistics(QObject *parent=0)
Constructs an IsisStats object with accumulators and counters set to zero.
Definition: Statistics.cpp:28
@ SignedInteger
Definition: PixelType.h:34
int size() const
Returns the total number of pixels in the shape buffer.
Definition: Buffer.h:97
double BinRangeEnd() const
Definition: Histogram.h:112
Adds specific functionality to C++ strings.
Definition: IString.h:165
QString ArraySubscriptNotInRange(int index)
This error should be used when an Isis object or application is checking array bounds and the legal r...
Definition: ArraySubscriptNotInRange.cpp:31
@ UnsignedByte
Definition: PixelType.h:29
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
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ Real
Definition: PixelType.h:35