28 #ifndef IMAGES_MOMENTSBASE_H
29 #define IMAGES_MOMENTSBASE_H
48 template <
class T>
class MomentCalcBase;
96 template <
class T>
class MomentsBase {
250 void setSnr(
const T& peakSNR,
const T& stdDeviation);
359 #ifndef AIPS_NO_TEMPLATE_SRC
360 #include <imageanalysis/ImageAnalysis/MomentsBase.tcc>
A Vector of integers, for indexing into Array<T> objects.
Invokes Gaussian fitting.
casacore::CoordinateSystem _makeOutputCoordinates(casacore::IPosition &outShape, const casacore::CoordinateSystem &cSysIn, const casacore::IPosition &inShape, casacore::Int momentAxis, casacore::Bool removeAxis)
Make output Coordinates.
casacore::Bool doSmooth_p
casacore::Bool fixedYLimits_p
casacore::Bool overWriteOutput_p
The minimum value of the intensity.
casacore::Int worldMomentAxis_p
casacore::Bool setSmoothOutName(const casacore::String &smOut)
This is the output file name for the smoothed image.
casacore::Bool showProgress_p
casacore::MDoppler::Types velocityType_p
The standard deviation about the mean of the intensity.
casacore::String errorMessage() const
Recover last error message.
virtual Type type()
Return the type enum.
The maximum value of the intensity.
casacore::Int momentAxisDefault_p
Abstract base class for moment calculator classes.
ostream-like interface to creating log messages.
casacore::Vector< casacore::Int > kernelTypes_p
casacore::Vector< T > selectRange_p
casacore::Bool doWindow_p
The coordinate (usually velocity) of the minimum value of the intensity.
Invokes the spectral windowing method.
MethodTypes
The enum MethodTypes is provided for use with the setWinFitMethod function.
casacore::Bool _setOutThings(casacore::String &suffix, casacore::Unit &momentUnits, const casacore::Unit &imageUnits, const casacore::String &momentAxisUnits, const casacore::Int moment, casacore::Bool convertToVelocity)
Set the output image suffixes and units.
The integrated intensity.
casacore::Int momentAxis_p
void _checkMethod()
Check that the combination of methods that the user has requested is valid casacore::List a handy dan...
casacore::Vector< casacore::Int > moments_p
virtual ~MomentsBase()
Destructor.
casacore::Bool goodParameterStatus_p
MomentsBase(casacore::LogIO &os, casacore::Bool overWriteOutput=false, casacore::Bool showProgress=true)
Constructor takes an image and a casacore::LogIO object for logging purposes.
bool Bool
Define the standard types used by Casacore.
casacore::Bool shouldConvertToVelocity() const
The median coordinate (usually velocity).
casacore::Vector< casacore::Quantity > kernelWidths_p
Types
Types of known MDopplers Warning: The order defines the order in the translation matrix FromTo in th...
void resetError()
Reset argument error condition.
void setInExCludeRange(const casacore::Vector< T > &include, const casacore::Vector< T > &exclude)
You may specify a pixel intensity range as either one for which all pixels in that range are included...
casacore::Bool noInclude_p
virtual casacore::Bool setSmoothMethod(const casacore::Vector< casacore::Int > &, const casacore::Vector< casacore::Int > &, const casacore::Vector< casacore::Quantum< casacore::Double > > &)=0
This function invokes smoothing of the input image.
void _setIncludeExclude(casacore::Vector< T > &range, casacore::Bool &noInclude, casacore::Bool &noExclude, const casacore::Vector< T > &include, const casacore::Vector< T > &exclude)
Take the user's data inclusion and exclusion data ranges and generate the range and Booleans to say w...
static casacore::Vector< casacore::Int > toMethodTypes(const casacore::String &methods)
Helper function to convert a string containing a list of desired methods to the correct casacore::Vec...
virtual const casacore::CoordinateSystem & coordinates()=0
Get CoordinateSystem.
casacore::Bool setMoments(const casacore::Vector< casacore::Int > &moments)
Set the desired moments via an casacore::Int array.
The coordinate (usually velocity) of the maximum value of the intensity.
MomentTypes
This enum MomentTypes is provided for use with the setMoments function.
The rms of the intensity.
The absolute mean deviation of the intensity.
virtual casacore::IPosition getShape() const =0
casacore::Bool setWinFitMethod(const casacore::Vector< casacore::Int > &method)
The method by which you compute the moments is specified by calling (or not calling) the setWinFitMet...
String: the storage and methods of handling collections of characters.
casacore::Bool noExclude_p
void setVelocityType(casacore::MDoppler::Types type)
Set Velocity type.
void setSnr(const T &peakSNR, const T &stdDeviation)
This function is used to help assess whether a spectrum along the moment axis is all noise or not...
casacore::Vector< casacore::Int > smoothAxes_p
The intensity weighted mean coordinate (usually velocity)
The intensity weighted coordinate (usually velocity) dispersion.
Default value is the integrated intensity.
casacore::String smoothOut_p
Interconvert pixel and world coordinates.
casacore::Bool convertToVelocity_p
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
virtual casacore::Bool setMomentAxis(casacore::Int)=0
Set the moment axis (0 relative).