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;
201 virtual void listMinMax (ostringstream& osMin,
202 ostringstream& osMax,
203 Int oWidth, DataType type);
210 AccumType nPts, AccumType
sum, AccumType
median,
211 AccumType medAbsDevMed, AccumType quartile,
212 AccumType sumSq, AccumType
mean, AccumType var,
213 AccumType
rms, AccumType sigma, AccumType dMin,
214 AccumType dMax, AccumType q1, AccumType q3
268 #ifndef CASACORE_NO_AUTO_TEMPLATES 269 #include <casacore/images/Images/ImageStatistics.tcc> 270 #endif //# CASACORE_NO_AUTO_TEMPLATES A Vector of integers, for indexing into Array<T> objects.
SHARED_PTR< const ImageInterface< T > > _inImPtrMgr
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.
LatticeExprNode sum(const LatticeExprNode &expr)
virtual void getLabels(String &higherOrder, String &xAxis, const IPosition &dPos) const
Virtual functions.
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()
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.
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)
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.
vector< String > getMessages()
bool Bool
Define the standard types used by Casacore.
virtual Bool _canDoFlux() const
Virtual Functions.
Quantities (i.e. dimensioned values)
virtual Bool _getBeamArea(Array< Double > &beamArea, String &msg) const
Get beam area in pixels if possible.
vector< String > _messages
LatticeExprNode mean(const LatticeExprNode &expr)
TableExprNode rms(const TableExprNode &array)
String: the storage and methods of handling collections of characters.
Bool setNewImage(const ImageInterface< T > &image, Bool clone=True)
Set a new ImageInterface object.
const ImageInterface< T > * pInImage_p
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