27 #ifndef IMAGEANALYSIS_CASACREGIONMANAGER_H
28 #define IMAGEANALYSIS_CASACREGIONMANAGER_H
134 const std::vector<casacore::Double>& boxCorners,
const std::vector<casacore::uInt>& chanEndPts,
A Vector of integers, for indexing into Array<T> objects.
std::vector< casacore::uInt > _setPolarizationRanges(casacore::String &specification, const casacore::String &firstStokes, const casacore::uInt nStokes, const StokesControl stokesControl) const
std::vector< casacore::Double > _setBoxCorners(const casacore::String &box) const
casacore::String _pairsToString(const std::vector< casacore::uInt > &pairs) const
std::vector< casacore::uInt > _spectralRangeFromRegionRecord(casacore::uInt &nSelectedChannels, const casacore::Record *const regionRec, const casacore::IPosition &imShape) const
std::vector< casacore::uInt > _initSpectralRanges(casacore::uInt &nSelectedChannels, const casacore::IPosition &imShape) const
std::vector< casacore::uInt > setSpectralRanges(casacore::uInt &nSelectedChannels, const casacore::Record *const regionRec, const casacore::IPosition &imShape=casacore::IPosition(0)) const
Return the range(s) of spectral channels selected by the specification or the region record (Note onl...
static const casacore::String ALL
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::String _stokesFromRecord(const casacore::Record ®ion, const StokesControl stokesControl, const casacore::IPosition &shape) const
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
casacore::Record fromBCS(casacore::String &diagnostics, casacore::uInt &nSelectedChannels, casacore::String &stokes, const casacore::Record *const ®ionPtr, const casacore::String ®ionName, const casacore::String &chans, const StokesControl stokesControl, const casacore::String &box, const casacore::IPosition &imShape, const casacore::String &imageName="", casacore::Bool verbose=true)
convert to a record a region specified by a rectangular directional box, chans, and stokes...
Class to hold a region of interest in an image.
CasacRegionManager & operator=(const CasacRegionManager &)=delete
Record * box(const Vector< Double > &blc, const Vector< Double > &trc, const Vector< Double > &inc, const String &absrel, const Bool frac, const String &comment="")
LCSlicer box.
casacore::ImageRegion _fromBCS(casacore::String &diagnostics, const std::vector< casacore::Double > &boxCorners, const std::vector< casacore::uInt > &chanEndPts, const std::vector< casacore::uInt > &polEndPts, const casacore::IPosition imShape) const
String: the storage and methods of handling collections of characters.
std::vector< casacore::uInt > _spectralRangeFromRangeFormat(casacore::uInt &nSelectedChannels, const casacore::String &specification, const casacore::IPosition &imShape) const
casacore::Bool _supports2DBox(casacore::Bool except) const
does the image support the setting of a two dimensional box(es).
Interconvert pixel and world coordinates.
static void _setRegion(casacore::Record ®ionRecord, casacore::String &diagnostics, const casacore::Record *regionPtr)
static casacore::Record regionFromString(const casacore::CoordinateSystem &csys, const casacore::String ®ionStr, const casacore::String &imageName, const casacore::IPosition &imShape, casacore::Bool verbose=true)