28 #ifndef IMAGEANALYSIS_MOMENTWINDOW_H
29 #define IMAGEANALYSIS_MOMENTWINDOW_H
42 template <
class T>
class MomentsBase;
240 #ifndef CASACORE_NO_AUTO_TEMPLATES
241 #include <imageanalysis/ImageAnalysis/MomentWindow.tcc>
A Vector of integers, for indexing into Array<T> objects.
MIRIAD dataset casacore::MeasurementSet filler.
virtual void multiProcess(casacore::Vector< T > &out, casacore::Vector< casacore::Bool > &outMask, const casacore::Vector< T > &in, const casacore::Vector< casacore::Bool > &inMask, const casacore::IPosition &pos)
This function returns a vector of numbers from each input vector.
A 1-D Specialization of the Array class.
This class is a base class for generating moments from an image or a spectral data.
T & stdDeviation(MomentsBase< T > &iMom) const
Return standard deviation of image from ImageMoments or MSMoments object.
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
typename casacore::Vector< T >::const_iterator DataIterator
casacore::Bool doFit(const MomentsBase< T > &iMom) const
Return the casacore::Bool from the ImageMoments or MSMoments object saying whether we are going to fi...
Abstract base class for moment calculator classes.
ostream-like interface to creating log messages.
casacore::IPosition sliceShape_p
shared_ptr< casacore::Lattice< T > > _ancilliaryLattice
T & peakSNR(MomentsBase< T > &iMom) const
Return the peak SNR for determination of all noise spectra from the ImageMoments or MSMoments object...
~MomentWindow()
Destructor (does nothing).
Computes moments from a windowed profile.
MomentsBase< T > & iMom_p
typename casacore::NumericTraits< T >::PrecisionType AccumType
Char PrecisionType
Higher precision type (Float->Double)
A templated, abstract base class for array-like objects.
bool Bool
Define the standard types used by Casacore.
const casacore::Vector< T > * pProfileSelect_p
casacore::Vector< T > ancilliarySliceRef_p
casacore::Bool setNSigmaWindow(casacore::Vector< casacore::Int > &window, const T pos, const T width, const casacore::Int nPts, const casacore::Int N) const
Take the fitted Gaussian parameters and set an N-sigma window.
casacore::Bool getAutoWindow(casacore::uInt &nFailed, casacore::Vector< casacore::Int > &window, const casacore::Vector< T > &x, const casacore::Vector< T > &y, const casacore::Vector< casacore::Bool > &mask, const T peakSNR, const T stdDeviation, const casacore::Bool doFit) const
Automatically determine the spectral window.
casacore::Bool _getBosmaWindow(casacore::Vector< casacore::Int > &window, const casacore::Vector< T > &y, const casacore::Vector< casacore::Bool > &mask, const T peakSNR, const T stdDeviation) const
Automatically determine the spectral window via Bosma's algorithm.
MomentWindow(shared_ptr< casacore::Lattice< T >> pAncilliaryLattice, MomentsBase< T > &iMom, casacore::LogIO &os, const casacore::uInt nLatticeOut)
Constructor.
casacore::Vector< T > selectedData_p
virtual void process(T &out, casacore::Bool &outMask, const casacore::Vector< T > &in, const casacore::Vector< casacore::Bool > &inMask, const casacore::IPosition &pos)
This function is not implemented and throws an exception.