28 #ifndef IMAGES_IMAGEMOMENTS_H
29 #define IMAGES_IMAGEMOMENTS_H
37 template <
class T>
class MaskedLattice;
42 class ImageMomentsProgressMonitor;
232 template <
class T>
class ImageMoments :
public MomentsBase<T> {
310 std::vector<std::shared_ptr<casacore::MaskedLattice<T> > >
createMoments(
375 #ifndef CASACORE_NO_AUTO_TEMPLATES
376 #include <imageanalysis/ImageAnalysis/ImageMoments.tcc>
A Vector of integers, for indexing into Array<T> objects.
This class is a base class for generating moments from an image or a spectral data.
This class generates moments from an image.
Abstract base class for moment calculator classes.
ImageMoments< T > & operator=(const ImageMoments< T > &other)=delete
SPIIT _smoothImage()
casacore::Smooth an image
ostream-like interface to creating log messages.
~ImageMoments()
Destructor.
void setProgressMonitor(ImageMomentsProgressMonitor *progressMonitor)
Set an ImageMomentsProgressMonitor interested in getting updates on the progress of the collapse proc...
A base class for astronomical images.
casacore::Bool setMomentAxis(casacore::Int momentAxis)
Set the moment axis (0 relative).
This is just an interface class for monitoring the progress of collapsing and image through calculati...
bool Bool
Define the standard types used by Casacore.
const casacore::CoordinateSystem & coordinates()
Get CoordinateSystem.
ImageMomentsProgressMonitor * _progressMonitor
casacore::Bool setSmoothMethod(const casacore::Vector< casacore::Int > &smoothAxes, const casacore::Vector< casacore::Int > &kernelTypes, const casacore::Vector< casacore::Quantum< casacore::Double > > &kernelWidths)
This function invokes smoothing of the input image.
String: the storage and methods of handling collections of characters.
casacore::Bool setNewImage(const casacore::ImageInterface< T > &image)
Set a new image.
casacore::IPosition getShape() const
Get shape.
Interconvert pixel and world coordinates.
void _whatIsTheNoise(T &noise, const casacore::ImageInterface< T > &image)
Determine the noise by fitting a Gaussian to a histogram of the entire image above the 25% levels...
std::vector< std::shared_ptr< casacore::MaskedLattice< T > > > createMoments(casacore::Bool doTemp, const casacore::String &outFileName, casacore::Bool removeAxes=true)
This is the function that does all the computational work.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.