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

HeightSourceheightSource
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

casa::Histogram::Histogram ( HeightSource source  ) 
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
Histogram casa::Histogram::operator= ( const Histogram other  )  [private]
void casa::Histogram::postStatus ( const QString &  msg  )  [signal]
bool casa::Histogram::reset ( FootPrintWidget::PlotMode  mode  ) 

Completely reset the histogram if the image, region, or channels change.

void casa::Histogram::setBinCount ( int  count  ) 

common to all histograms

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

const int casa::Histogram::ALL_CHANNELS [private]

Definition at line 95 of file Histogram.h.

const int casa::Histogram::ALL_INTENSITIES [private]

Definition at line 96 of file Histogram.h.

Definition at line 103 of file Histogram.h.

Definition at line 99 of file Histogram.h.

Definition at line 98 of file Histogram.h.

Definition at line 89 of file Histogram.h.

Definition at line 92 of file Histogram.h.

SHARED_PTR<const ImageInterface<Float> > casa::Histogram::image [private]

Definition at line 97 of file Histogram.h.

Definition at line 102 of file Histogram.h.

Definition at line 101 of file Histogram.h.

ImageRegion* casa::Histogram::region [private]

Definition at line 93 of file Histogram.h.

Definition at line 100 of file Histogram.h.

vector<Float> casa::Histogram::xValues [private]

Definition at line 90 of file Histogram.h.

vector<Float> casa::Histogram::yValues [private]

Definition at line 91 of file Histogram.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1