28 #ifndef IMAGES_IMAGESTATISTICS_H
29 #define IMAGES_IMAGESTATISTICS_H
44 template <
class T>
class ImageInterface;
201 virtual void listMinMax (ostringstream& osMin,
202 ostringstream& osMax,
266 #ifndef CASACORE_NO_AUTO_TEMPLATES
267 #include <casacore/images/Images/ImageStatistics.tcc>
268 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
std::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.
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()
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.
virtual casacore::String type() const
Implements RegionShape::type.
A 2-D Specialization of the Array class.
ostream-like interface to creating log messages.
void setBlc(const IPosition &blc)
virtual ~ImageStatistics()
Destructor.
void show(const variant &v)
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.
vector< String > getMessages()
bool Bool
Define the standard types used by Casacore.
casacore::Bool clone(const casacore::String &imageName, const casacore::String &newImageName)
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.
Bool setNewImage(const ImageInterface< T > &image, Bool clone=True)
Set a new ImageInterface object.
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.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.