casa::Histogram Class Reference
Generates and Manages the data corresponding to a histogram.
More...
#include <Histogram.h>
List of all members.
Signals |
| void | postStatus (const QString &msg) |
Public Member Functions |
| | Histogram (HeightSource *source) |
| int | getDataCount () const |
| bool | compute () |
| | Just recompute the histogram if a parameter such as bin count or intensity changes.
|
| bool | reset (FootPrintWidget::PlotMode mode) |
| | Completely reset the histogram if the image, region, or channels change.
|
| void | setRegion (ImageRegion *region) |
| void | defineLine (int index, QVector< double > &xVals, QVector< double > &yVals, bool useLogY) const |
| void | defineStepHorizontal (int index, QVector< double > &xVals, QVector< double > &yVals, bool useLogY) const |
| void | defineStepVertical (int index, QVector< double > &xVals, QVector< double > &yVals, bool useLogY) const |
| std::pair< float, float > | getMinMaxBinCount () const |
| vector< float > | getXValues () const |
| vector< float > | getYValues () const |
| std::pair< float, float > | getDataRange () const |
| void | toAscii (QTextStream &out) const |
| virtual | ~Histogram () |
| void | setBinCount (int count) |
| | common to all histograms
|
| void | setChannelRangeDefault () |
| void | setIntensityRangeDefault () |
| void | setChannelRange (int minChannel, int maxChannel, int spectralIndex=-1) |
| void | setIntensityRange (float minimumIntensity, float maximumIntensity) |
| void | setImage (const SHARED_PTR< const ImageInterface< Float > > image) |
Static Public Member Functions |
| static double | computeYValue (double value, bool useLog) |
Private Member Functions |
| | Histogram (const Histogram &other) |
| Histogram | operator= (const Histogram &other) |
| ImageHistograms< Float > * | filterByChannels (const SHARED_PTR< const ImageInterface< Float > > image) |
Private Attributes |
| HeightSource * | heightSource |
| vector< Float > | xValues |
| vector< Float > | yValues |
| ImageHistograms< Float > * | histogramMaker |
| ImageRegion * | region |
| const int | ALL_CHANNELS |
| const int | ALL_INTENSITIES |
SHARED_PTR< const
ImageInterface< Float > > | image |
| int | channelMin |
| int | channelMax |
| int | specIndex |
| float | intensityMin |
| float | intensityMax |
| int | binCount |
Detailed Description
Generates and Manages the data corresponding to a histogram.
Definition at line 47 of file Histogram.h.
Constructor & Destructor Documentation
| virtual casa::Histogram::~Histogram |
( |
|
) |
[virtual] |
| casa::Histogram::Histogram |
( |
const Histogram & |
other |
) |
[private] |
Member Function Documentation
| bool casa::Histogram::compute |
( |
|
) |
|
Just recompute the histogram if a parameter such as bin count or intensity changes.
| static double casa::Histogram::computeYValue |
( |
double |
value, |
|
|
bool |
useLog | |
|
) |
| | [static] |
| void casa::Histogram::defineLine |
( |
int |
index, |
|
|
QVector< double > & |
xVals, |
|
|
QVector< double > & |
yVals, |
|
|
bool |
useLogY | |
|
) |
| | const |
| void casa::Histogram::defineStepHorizontal |
( |
int |
index, |
|
|
QVector< double > & |
xVals, |
|
|
QVector< double > & |
yVals, |
|
|
bool |
useLogY | |
|
) |
| | const |
| void casa::Histogram::defineStepVertical |
( |
int |
index, |
|
|
QVector< double > & |
xVals, |
|
|
QVector< double > & |
yVals, |
|
|
bool |
useLogY | |
|
) |
| | const |
| ImageHistograms<Float>* casa::Histogram::filterByChannels |
( |
const SHARED_PTR< const ImageInterface< Float > > |
image |
) |
[private] |
| int casa::Histogram::getDataCount |
( |
|
) |
const |
| std::pair<float,float> casa::Histogram::getDataRange |
( |
|
) |
const |
| std::pair<float,float> casa::Histogram::getMinMaxBinCount |
( |
|
) |
const |
| vector<float> casa::Histogram::getXValues |
( |
|
) |
const |
| vector<float> casa::Histogram::getYValues |
( |
|
) |
const |
| void casa::Histogram::postStatus |
( |
const QString & |
msg |
) |
[signal] |
Completely reset the histogram if the image, region, or channels change.
| void casa::Histogram::setBinCount |
( |
int |
count |
) |
|
| void casa::Histogram::setChannelRange |
( |
int |
minChannel, |
|
|
int |
maxChannel, |
|
|
int |
spectralIndex = -1 | |
|
) |
| | |
| void casa::Histogram::setChannelRangeDefault |
( |
|
) |
|
| void casa::Histogram::setImage |
( |
const SHARED_PTR< const ImageInterface< Float > > |
image |
) |
|
| void casa::Histogram::setIntensityRange |
( |
float |
minimumIntensity, |
|
|
float |
maximumIntensity | |
|
) |
| | |
| void casa::Histogram::setIntensityRangeDefault |
( |
|
) |
|
| void casa::Histogram::setRegion |
( |
ImageRegion * |
region |
) |
|
| void casa::Histogram::toAscii |
( |
QTextStream & |
out |
) |
const |
Member Data Documentation
The documentation for this class was generated from the following file: