28 #ifndef LATTICES_LATTICEMATHUTIL_H
29 #define LATTICES_LATTICEMATHUTIL_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/lattices/LatticeMath/LatticeStatsBase.h>
33 #include <casacore/casa/Arrays/ArrayFwd.h>
37 template <
class T>
class Lattice;
38 template <
class T>
class MaskedLattice;
78 Bool dropDegenerateAxes);
89 Bool dropDegenerateAxes,
152 #ifndef CASACORE_NO_AUTO_TEMPLATES
153 #include <casacore/lattices/LatticeMath/LatticeMathUtil.tcc>
static void collapse(Array< T > &data, Array< Bool > &mask, const IPosition &axes, const MaskedLattice< T > &lat, Bool dropDegenerateAxes, Bool getPixels=True, Bool getMask=True, const LatticeStatsBase::StatisticsTypes stat=LatticeStatsBase::MEAN)
Collapse the specified axes by averaging and recover either/and the pixel values and mask.
static void collapse(Array< T > &data, const IPosition &axes, const MaskedLattice< T > &in, Bool dropDegenerateAxes)
Collapse the specified axes by averaging and recover the pixel values.
StatisticsTypes
This enum StatisticTypes is provided for use with the LatticeStatistics<T>::setPlotting function.
this file contains all the compiler specific defines
LatticeExprNode max(const LatticeExprNode &left, const LatticeExprNode &right)
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
bool Bool
Define the standard types used by Casacore.
void minMax(T &min, T &max, IPosition &posMin, IPosition &posMax, const Lattice< T > &lat)
This global function finds the max of a Lattice, and also the IPositions of the max.