casa
5.7.0-16
|
Static math functions for Lattices. More...
#include <LatticeMathUtil.h>
Static Public Member Functions | |
template<class T > | |
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. More... | |
template<class T > | |
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. More... | |
Static math functions for Lattices.
Public interface
Some static helper math functions for Lattices
Common functionality not appropriate for Lattice member functions
Definition at line 68 of file LatticeMathUtil.h.
|
static |
Collapse the specified axes by averaging and recover the pixel values.
If axes is empty, then the data just contains all of the lattice (i.e. no collapse), but dropDegenerateAxes is stil honoured
|
static |
Collapse the specified axes by averaging and recover either/and the pixel values and mask.
If axes is empty, then the data and mask just contains all of the lattice (i.e. no collapse) but dropDegenerateAxes is stil honoured