28 #ifndef IMAGEANALYSIS_SPECTRALCOLLAPSER_H
29 #define IMAGEANALYSIS_SPECTRALCOLLAPSER_H
A Vector of integers, for indexing into Array<T> objects.
casacore::Bool _getQualitySubImg(const casacore::ImageInterface< casacore::Float > *image, const casacore::Bool &data, casacore::SubImage< casacore::Float > &qualitySub)
casacore::Bool _collapse(const SPCIIF image, const casacore::String &aggString, const casacore::String &chanInp, const casacore::String &outname) const
casacore::Bool _getOutputName(const casacore::String &wcsInp, casacore::String &outImg, casacore::String &outImgData, casacore::String &outImgError) const
static void stringToCollapseType(const casacore::String &text, SpectralCollapser::CollapseType &collType)
Convert from string to collapse type.
void _collErrorToImCollString(const SpectralCollapser::CollapseError &collError, casacore::String &colError) const
casacore::Bool _moments(const casacore::ImageInterface< casacore::Float > *image, const casacore::Vector< casacore::Int > &momentVec, const casacore::Int &startIndex, const casacore::Int &endIndex, const casacore::String &outname)
casacore::Bool _mergeDataError(const casacore::String &outImg, const casacore::String &dataImg, const casacore::String &errorImg, const casacore::Float &normError=1.0) const
ostream-like interface to creating log messages.
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
CollapseType
Class to collapse an image along the spectral axis.
virtual casacore::Bool collapse(const casacore::Vector< casacore::Float > &specVals, const casacore::Float startVal, const casacore::Float endVal, const casacore::String &unit, const SpectralCollapser::CollapseType &collType, const SpectralCollapser::CollapseError &collError, casacore::String &outname, casacore::String &msg)
Parameters: specVals - the vector of spectral values startVal - the spectral value to start the colla...
static void collapseErrorToString(const SpectralCollapser::CollapseError &collError, casacore::String &strCollError)
Convert from error type to string.
virtual ~SpectralCollapser()
Destructor.
void _addMiscInfo(const casacore::String &outName, const casacore::String &wcsInput, const casacore::String &chanInput, const SpectralCollapser::CollapseType &collType, const SpectralCollapser::CollapseError &collError) const
static void collapseTypeToString(const SpectralCollapser::CollapseType &collType, casacore::String &strCollType)
Convert from collapse type to string.
casacore::String summaryHeader() const
void _collTypeToImCollString(const SpectralCollapser::CollapseType &collType, casacore::String &colType) const
static void stringToCollapseError(const casacore::String &text, SpectralCollapser::CollapseError &collError)
Convert from string to error type.
SpectralCollapser()
Disallow default constructor.
std::shared_ptr< const casacore::ImageInterface< casacore::Float > > SPCIIF
void collapseTypeToVector(const SpectralCollapser::CollapseType &collType, casacore::Vector< casacore::Int > &momentVec)
casacore::Bool _getQualitySubImgs(SPCIIF image, std::shared_ptr< casacore::SubImage< casacore::Float > > &subData, std::shared_ptr< casacore::SubImage< casacore::Float > > &subError) const
bool Bool
Define the standard types used by Casacore.
A (masked) subset of an ImageInterface object.
casacore::Bool _hasQualAxis
String: the storage and methods of handling collections of characters.
casacore::Bool _cleanTmpData(const casacore::String &tmpFileName) const
casacore::String _storePath
casacore::IPosition _specAxis
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.