Go to the documentation of this file.
28 #ifndef IMAGES_IMAGESTATISTICS_H
29 #define IMAGES_IMAGESTATISTICS_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/BasicSL/String.h>
35 #include <casacore/casa/Utilities/DataType.h>
36 #include <casacore/casa/Logging/LogIO.h>
37 #include <casacore/lattices/LatticeMath/LatticeStatistics.h>
38 #include <casacore/scimath/Mathematics/NumericTraits.h>
39 #include <casacore/casa/iosstrfwd.h>
44 template <
class T>
class ImageInterface;
202 ostringstream& osMax,
203 Int oWidth, DataType type);
266 #ifndef CASACORE_NO_AUTO_TEMPLATES
267 #include <casacore/images/Images/ImageStatistics.tcc>
268 #endif //# CASACORE_NO_AUTO_TEMPLATES
virtual Bool listStats(Bool hasBeam, const IPosition &dPos, const Matrix< AccumType > &ord)
List the statistics.
virtual void listMinMax(ostringstream &osMin, ostringstream &osMax, Int oWidth, DataType type)
List min and max with world coordinates.
const ImageInterface< T > * pInImage_p
void setPrecision(Int precision)
virtual Bool _getBeamArea(Array< Double > &beamArea, String &msg) const
Get beam area in pixels if possible.
ImageStatistics< T > & operator=(const ImageStatistics< T > &other)
Assignment operator.
virtual ~ImageStatistics()
Destructor.
void setBlc(const IPosition &blc)
vector< String > _messages
ImageStatistics(const ImageStatistics< T > &other)
Copy constructor.
Bool setNewImage(const ImageInterface< T > &image, Bool clone=True)
Set a new ImageInterface object.
LatticeExprNode mean(const LatticeExprNode &expr)
Char PrecisionType
Higher precision type (Float->Double)
Bool _computeFlux(Array< AccumType > &flux, const Array< AccumType > &npts, const Array< AccumType > &sum)
Quantum< AccumType > _flux(Bool &isFluxDensity, AccumType sum, Double beamAreaInPixels) const
If isFluxDensity is False, then the computed value is a flux (ie flux density integrated over a spect...
ImageStatistics(const ImageInterface< T > &image, Bool showProgress=True, Bool forceDisk=False, Bool clone=True)
Constructor takes the image only.
void setListStats(Bool b)
this file contains all the compiler specific defines
LatticeExprNode median(const LatticeExprNode &expr)
ImageStatistics(const ImageInterface< T > &image, LogIO &os, Bool showProgress=True, Bool forceDisk=False, Bool clone=True)
Constructor takes the image and a LogIO object for logging.
void recordMessages(const Bool rm)
virtual Bool _canDoFlux() const
Virtual Functions.
vector< String > getMessages()
std::shared_ptr< const ImageInterface< T > > _inImPtrMgr
void showRobust(const Bool show)
list robust statistics? Should be called before display()
LatticeExprNode sum(const LatticeExprNode &expr)
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
NumericTraits< T >::PrecisionType AccumType
Bool _computeFlux(Quantum< AccumType > &flux, AccumType sum, const IPosition &pos, Bool posInLattice)
TableExprNode rms(const TableExprNode &array)
virtual void getLabels(String &higherOrder, String &xAxis, const IPosition &dPos) const
Virtual functions.
virtual void displayStats(AccumType nPts, AccumType sum, AccumType median, AccumType medAbsDevMed, AccumType quartile, AccumType sumSq, AccumType mean, AccumType var, AccumType rms, AccumType sigma, AccumType dMin, AccumType dMax, AccumType q1, AccumType q3)