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>
vector< String > getMessages()
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, LogIO &os, Bool showProgress=True, Bool forceDisk=False, Bool clone=True)
Constructor takes the image and a LogIO object for logging.
vector< String > _messages
void recordMessages(const Bool rm)
virtual Bool _getBeamArea(Array< Double > &beamArea, String &msg) const
Get beam area in pixels if possible.
ImageStatistics(const ImageStatistics< T > &other)
Copy constructor.
virtual ~ImageStatistics()
Destructor.
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)
const ImageInterface< T > * pInImage_p
void setBlc(const IPosition &blc)
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.
ImageStatistics(const ImageInterface< T > &image, Bool showProgress=True, Bool forceDisk=False, Bool clone=True)
Constructor takes the image only.
Bool setNewImage(const ImageInterface< T > &image, Bool clone=True)
Set a new ImageInterface object.
virtual Bool _canDoFlux() const
Virtual Functions.
ImageStatistics< T > & operator=(const ImageStatistics< T > &other)
Assignment operator.
void setPrecision(Int precision)
Bool _computeFlux(Quantum< AccumType > &flux, AccumType sum, const IPosition &pos, Bool posInLattice)
void setListStats(Bool b)
Bool _computeFlux(Array< AccumType > &flux, const Array< AccumType > &npts, const Array< AccumType > &sum)
NumericTraits< T >::PrecisionType AccumType
std::shared_ptr< const ImageInterface< T > > _inImPtrMgr
virtual void getLabels(String &higherOrder, String &xAxis, const IPosition &dPos) const
Virtual functions.
void showRobust(const Bool show)
list robust statistics? Should be called before display()
Char PrecisionType
Higher precision type (Float->Double)
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
LatticeExprNode mean(const LatticeExprNode &expr)
LatticeExprNode sum(const LatticeExprNode &expr)
bool Bool
Define the standard types used by Casacore.
LatticeExprNode median(const LatticeExprNode &expr)
TableExprNode rms(const TableExprNode &array)