#include <ImageCollapser.h>
Public Member Functions | |
ImageCollapser (const String &aggString, SPCIIT image, const Record *const regionRec, const String &maskInp, const IPosition &axes, Bool invertAxesSelection, const String &outname, Bool overwrite) | |
Top level interface which allows collapsing of images along a single axis. An aggregate method (average, sum, etc) is applied to the collapsed pixels. | |
ImageCollapser (const SPCIIT image, const IPosition &axes, Bool invertAxesSelection, const ImageCollapserData::AggregateType aggregateType, const String &outname, Bool overwrite) | |
~ImageCollapser () | |
SPIIT | collapse () const |
perform the collapse and return the resulting image. | |
String | getClass () const |
Static Public Member Functions | |
static const map< uInt, T(* | funcMap ())(const Array< T > &)> * |
Protected Member Functions | |
CasacRegionManager::StokesControl | _getStokesControl () const |
std::vector< Coordinate::Type > | _getNecessaryCoordinates () const |
Represents the minimum set of coordinates necessary for the task to function. | |
Bool | _supportsMultipleRegions () const |
Private Member Functions | |
ImageCollapser () | |
disallow default constructor | |
void | _invert () |
void | _finishConstruction () |
void | _doMedian (SPCIIT image, TempImage< T > &outImage) const |
necessary to improve performance | |
void | _attachOutputMask (TempImage< T > &outImage, const Array< Bool > &outMask) const |
Static Private Member Functions | |
static void | _zeroNegatives (Array< T > &arr) |
static const map< uInt, T(* | _getFuncMap ())(const Array< T > &)> & |
Private Attributes | |
Bool | _invertAxesSelection |
IPosition | _axes |
ImageCollapserData::AggregateType | _aggType |
Static Private Attributes | |
static map< uInt, T(*)(const Array< T > &)> | _funcMap |
Definition at line 15 of file ImageCollapser.h.
casa::ImageCollapser< T >::ImageCollapser | ( | const String & | aggString, | |
SPCIIT | image, | |||
const Record *const | regionRec, | |||
const String & | maskInp, | |||
const IPosition & | axes, | |||
Bool | invertAxesSelection, | |||
const String & | outname, | |||
Bool | overwrite | |||
) |
Top level interface which allows collapsing of images along a single axis. An aggregate method (average, sum, etc) is applied to the collapsed pixels.
Collapses image.
High level interface for collapsing an image along a single axis.
ImageCollapser collapser(...); collapser.collapse();
if outname
is empty, no image will be written if overwrite
is True, if image already exists it will be removed if overwrite
is False, if image already exists exception will be thrown
casa::ImageCollapser< T >::ImageCollapser | ( | const SPCIIT | image, | |
const IPosition & | axes, | |||
Bool | invertAxesSelection, | |||
const ImageCollapserData::AggregateType | aggregateType, | |||
const String & | outname, | |||
Bool | overwrite | |||
) |
casa::ImageCollapser< T >::~ImageCollapser | ( | ) | [inline] |
Definition at line 66 of file ImageCollapser.h.
casa::ImageCollapser< T >::ImageCollapser | ( | ) | [private] |
disallow default constructor
void casa::ImageCollapser< T >::_attachOutputMask | ( | TempImage< T > & | outImage, | |
const Array< Bool > & | outMask | |||
) | const [private] |
void casa::ImageCollapser< T >::_doMedian | ( | SPCIIT | image, | |
TempImage< T > & | outImage | |||
) | const [private] |
necessary to improve performance
void casa::ImageCollapser< T >::_finishConstruction | ( | ) | [private] |
static const map<uInt, T (* casa::ImageCollapser< T >::_getFuncMap | ( | ) | const [static, private] |
std::vector<Coordinate::Type> casa::ImageCollapser< T >::_getNecessaryCoordinates | ( | ) | const [inline, protected, virtual] |
Represents the minimum set of coordinates necessary for the task to function.
Implements casa::ImageTask< T >.
Definition at line 80 of file ImageCollapser.h.
CasacRegionManager::StokesControl casa::ImageCollapser< T >::_getStokesControl | ( | ) | const [inline, protected, virtual] |
Implements casa::ImageTask< T >.
Definition at line 76 of file ImageCollapser.h.
References casa::CasacRegionManager::USE_ALL_STOKES.
void casa::ImageCollapser< T >::_invert | ( | ) | [private] |
Bool casa::ImageCollapser< T >::_supportsMultipleRegions | ( | ) | const [inline, protected, virtual] |
Reimplemented from casa::ImageTask< T >.
Definition at line 84 of file ImageCollapser.h.
References casacore::True.
static void casa::ImageCollapser< T >::_zeroNegatives | ( | Array< T > & | arr | ) | [static, private] |
SPIIT casa::ImageCollapser< T >::collapse | ( | ) | const |
perform the collapse and return the resulting image.
static const map<uInt, T (* casa::ImageCollapser< T >::funcMap | ( | ) | const [static] |
String casa::ImageCollapser< T >::getClass | ( | ) | const [inline, virtual] |
Implements casa::ImageTask< T >.
Definition at line 73 of file ImageCollapser.h.
References casa::name(), and String.
ImageCollapserData::AggregateType casa::ImageCollapser< T >::_aggType [private] |
Definition at line 89 of file ImageCollapser.h.
IPosition casa::ImageCollapser< T >::_axes [private] |
Definition at line 88 of file ImageCollapser.h.
map<uInt, T (*)(const Array<T>&)> casa::ImageCollapser< T >::_funcMap [static, private] |
Definition at line 91 of file ImageCollapser.h.
Bool casa::ImageCollapser< T >::_invertAxesSelection [private] |
Definition at line 87 of file ImageCollapser.h.