28 #ifndef IMAGES_IMAGEREGION_H
29 #define IMAGES_IMAGEREGION_H
38 class CoordinateSystem;
136 const Record& regionRecord);
A Vector of integers, for indexing into Array<T> objects.
LCRegion & asMask()
Get the region as a writable mask.
const LCSlicer & asLCSlicer() const
virtual LattRegionHolder * makeDifference(const LattRegionHolder &other) const
virtual Bool isWCRegion() const
Test if the underlying region is an WCRegion.
static ImageRegion * fromRecord(LogIO *logger, const CoordinateSystem &coords, const IPosition &imShape, const Record ®ionRecord)
Create an ImageRegion from a record.
const LCRegion & asLCRegion() const
Get the region as an LCSlicer or WCRegion.
static ImageRegion * fromLatticeExpression(const String &latticeExpression)
Create an ImageRegion from a lattice expression.
virtual LattRegionHolder * makeUnion(const LattRegionHolder &other) const
Form a compound from this and the other region.
ostream-like interface to creating log messages.
ImageRegion()
Default constructor (has no region at all).
virtual const WCRegion * asWCRegionPtr() const
Get the region as a pointer to WCRegion.
virtual LattRegionHolder * makeComplement() const
ImageRegion & operator=(const ImageRegion &other)
Assignment (copy semantics).
Class to hold a region of interest in an image.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
const WCRegion & asWCRegion() const
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
A hierarchical collection of named fields of various types.
Class to define a rectangular box of interest with strides.
LCRegion * toLCRegion(const CoordinateSystem &cSys, const IPosition &shape) const
Convert to an LCRegion using the given coordinate system (with reference pixel) and shape...
virtual LattRegionHolder * makeIntersection(const LattRegionHolder &other) const
Class to hold a region of interest in an image.
Base class to define world coordinate regions of interest in an image.
String: the storage and methods of handling collections of characters.
An optionally strided region in a Lattice.
const LCSlicer * asLCSlicerPtr() const
virtual Bool operator==(const LattRegionHolder &other) const
Comparison.
virtual LatticeRegion toLatticeRegion(const CoordinateSystem &cSys, const IPosition &shape) const
Convert to a LatticeRegion using the given coordinate system (with reference pixel) and shape...
TableRecord toRecord(const String &tableName) const
Convert the (derived) object to a record.
Interconvert pixel and world coordinates.
const LCRegion * asLCRegionPtr() const
Get the region as a pointer to a LCRegion, LCSlicer, or WCRegion.
Abstract base class to define a region of interest in lattice coordinates.
virtual ImageRegion * clone() const
Clone the object.