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;
186 virtual void listMinMax (ostringstream& osMin,
187 ostringstream& osMax,
188 Int oWidth, DataType type);
195 AccumType nPts, AccumType
sum, AccumType
median,
196 AccumType medAbsDevMed, AccumType quartile,
197 AccumType sumSq, AccumType
mean, AccumType var,
198 AccumType
rms, AccumType sigma, AccumType dMin,
199 AccumType dMax, AccumType q1, AccumType q3
249 #ifndef CASACORE_NO_AUTO_TEMPLATES 250 #include <casacore/images/Images/ImageStatistics.tcc> 251 #endif //# CASACORE_NO_AUTO_TEMPLATES A Vector of integers, for indexing into Array<T> objects.
void setListStats(Bool b)
LatticeExprNode median(const LatticeExprNode &expr)
virtual Bool listStats(Bool hasBeam, const IPosition &dPos, const Matrix< AccumType > &ord)
List the statistics.
ImageStatistics< T > & operator=(const ImageStatistics< T > &other)
Assignment operator.
virtual Bool _canDoFlux() const
Virtual Functions.
LatticeExprNode sum(const LatticeExprNode &expr)
Displays various statistics from an image.
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)
void showRobust(const Bool show)
list robust statistics? Should be called before display()
A 2-D Specialization of the Array class.
ostream-like interface to creating log messages.
void setBlc(const IPosition &blc)
virtual ~ImageStatistics()
Destructor.
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...
void setPrecision(Int precision)
Char PrecisionType
Higher precision type (Float->Double)
A base class for astronomical images.
NumericTraits< T >::PrecisionType AccumType
void recordMessages(const Bool rm)
Compute and display various statistics from a lattice.
ImageStatistics(const ImageInterface< T > &image, LogIO &os, Bool showProgress=True, Bool forceDisk=False)
Constructor takes the image and a LogIO object for logging.
vector< String > getMessages()
bool Bool
Define the standard types used by Casacore.
Bool setNewImage(const ImageInterface< T > &image)
Set a new ImageInterface object.
Quantities (i.e. dimensioned values)
virtual void getLabels(String &higherOrder, String &xAxis, const IPosition &dPos) const
Virtual functions.
vector< String > _messages
LatticeExprNode mean(const LatticeExprNode &expr)
TableExprNode rms(const TableExprNode &array)
String: the storage and methods of handling collections of characters.
const ImageInterface< T > * pInImage_p
virtual Bool _getBeamArea(Array< Double > &beamArea, String &msg) const
Get beam area in pixels if possible.
virtual void listMinMax(ostringstream &osMin, ostringstream &osMax, Int oWidth, DataType type)
List min and max with world coordinates.
this file contains all the compiler specific defines