31 #include <QTextStream>
37 template <
class T>
class ImageInterface;
38 template <
class T>
class SubImage;
44 template <
class T>
class ImageHistograms;
74 void toAscii( QTextStream& out )
const;
81 void setChannelRange(
int minChannel,
int maxChannel,
int spectralIndex=-1 );
101 std::shared_ptr<const casacore::ImageInterface<casacore::Float> >
image;
std::vector< casacore::Float > yValues
casacore::ImageRegion * region
std::shared_ptr< const casacore::ImageInterface< casacore::Float > > image
const int ALL_INTENSITIES
Histogram operator=(const Histogram &other)
HeightSource * heightSource
void setChannelRange(int minChannel, int maxChannel, int spectralIndex=-1)
bool reset(FootPrintWidget::PlotMode mode)
Completely reset the histogram if the image, region, or channels change.
void setIntensityRangeDefault()
Generates and Manages the data corresponding to a histogram.
void setChannelRangeDefault()
std::vector< casacore::Float > xValues
void defineLine(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 > getDataRange() const
void defineStepHorizontal(int index, QVector< double > &xVals, QVector< double > &yVals, bool useLogY) const
bool compute()
Just recompute the histogram if a parameter such as bin count or intensity changes.
static double computeYValue(double value, bool useLog)
std::vector< float > getYValues() const
std::vector< float > getXValues() const
ImageHistograms< casacore::Float > * filterByChannels(const std::shared_ptr< const casacore::ImageInterface< casacore::Float > > image)
void setRegion(casacore::ImageRegion *region)
Histogram(HeightSource *source)
void setBinCount(int count)
common to all histograms
Class to hold a region of interest in an image.
std::pair< float, float > getMinMaxBinCount() const
void setImage(const std::shared_ptr< const casacore::ImageInterface< casacore::Float > > image)
void setIntensityRange(float minimumIntensity, float maximumIntensity)
ImageHistograms< casacore::Float > * histogramMaker
void postStatus(const QString &msg)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void toAscii(QTextStream &out) const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.