casa
5.7.0-16
|
A base class for astronomical images. More...
#include <PixelRangeDialog.qo.h>
Public Member Functions | |
ImageInterface () | |
ImageInterface (const RegionHandler ®ionHandler) | |
Construct for a specific region handler object. More... | |
ImageInterface (const ImageInterface &other) | |
Copy constructor (copy semantics). More... | |
virtual | ~ImageInterface () |
virtual MaskedLattice< T > * | cloneML () const |
Make a copy of the derived object (reference semantics). More... | |
virtual ImageInterface< T > * | cloneII () const =0 |
virtual String | imageType () const =0 |
Get the image type (returns name of derived class). More... | |
virtual void | resize (const TiledShape &newShape)=0 |
Function which changes the shape of the image (N.B. More... | |
virtual Bool | setUnits (const Unit &newUnits) |
Function which get and set the units associated with the image pixels (i.e. More... | |
virtual const Unit & | units () const |
virtual String | name (Bool stripPath=False) const =0 |
Return the name of the current ImageInterface object. More... | |
virtual Bool | setCoordinateInfo (const CoordinateSystem &coords) |
Functions to set or replace the coordinate information in the Image Returns False on failure, e.g. More... | |
const CoordinateSystem & | coordinates () const |
virtual LELCoordinates | lelCoordinates () const |
Function to get a LELCoordinate object containing the coordinates. More... | |
LoggerHolder & | logger () |
Get access to the LoggerHolder. More... | |
const LoggerHolder & | logger () const |
LogIO & | logSink () |
Allow messages to be logged to this ImageInterface. More... | |
const LogIO & | logSink () const |
void | appendLog (const LoggerHolder &other) |
Add the messages from the other image logger to this one. More... | |
const TableRecord & | miscInfo () const |
Often we have miscellaneous information we want to attach to an image. More... | |
virtual Bool | setMiscInfo (const RecordInterface &newInfo) |
const ImageInfo & | imageInfo () const |
The ImageInfo object contains some miscellaneous information about the image which unlike that stored in MiscInfo, has a standard list of things, such as the restoring beam. More... | |
ImageInfo & | rwImageInfo () |
Get non-const access to the ImageInfo. More... | |
virtual Bool | setImageInfo (const ImageInfo &info) |
virtual ImageAttrHandler & | attrHandler (Bool createHandler=False) |
Get access to the attribute handler. More... | |
ImageAttrHandler & | roAttrHandler () const |
Bool | canDefineRegion () const |
Can the image handle region definition? More... | |
virtual ImageRegion | makeMask (const String &name, Bool defineAsRegion=True, Bool setAsDefaultMask=True, Bool initialize=False, Bool value=True) |
Make a mask which is suitable for the type of image. More... | |
virtual void | defineRegion (const String &name, const ImageRegion ®ion, RegionHandler::GroupType, Bool overwrite=False) |
Define a region/mask belonging to the image. More... | |
virtual Bool | hasRegion (const String ®ionName, RegionHandler::GroupType=RegionHandler::Any) const |
Does the image have a region with the given name? More... | |
virtual ImageRegion * | getImageRegionPtr (const String &name, RegionHandler::GroupType=RegionHandler::Any, Bool throwIfUnknown=True) const |
Get a region/mask belonging to the image from the given group (which can be Any). More... | |
virtual void | renameRegion (const String &newName, const String &oldName, RegionHandler::GroupType=RegionHandler::Any, Bool overwrite=False) |
Rename a region. More... | |
virtual void | removeRegion (const String &name, RegionHandler::GroupType=RegionHandler::Any, Bool throwIfUnknown=True) |
Remove a region/mask belonging to the image from the given group (which can be Any). More... | |
virtual Vector< String > | regionNames (RegionHandler::GroupType=RegionHandler::Any) const |
Get the names of all regions/masks. More... | |
virtual void | useMask (MaskSpecifier=MaskSpecifier()) |
Use the mask as specified. More... | |
virtual void | setDefaultMask (const String ®ionName) |
Set the default pixelmask to the mask with the given name (which has to exist in the "masks" group). More... | |
virtual String | getDefaultMask () const |
Get the name of the default pixelmask. More... | |
ImageRegion | getRegion (const String ®ionName, RegionHandler::GroupType=RegionHandler::Any) const |
Get a region belonging to the image. More... | |
String | makeUniqueRegionName (const String &rootName, uInt startNumber=1) const |
Make a unique region name from the given root name, thus make it such that the name is not already in use for a region or mask. More... | |
virtual Bool | ok () const =0 |
Check class invariants. More... | |
Bool | toRecord (String &error, RecordInterface &outRec) |
Save and restore an ImageInterface object to or from a state Record. More... | |
Bool | fromRecord (String &error, const RecordInterface &inRec) |
Public Member Functions inherited from casacore::MaskedLattice< T > | |
MaskedLattice () | |
Default constructor. More... | |
MaskedLattice (const MaskedLattice< T > &) | |
Copy constructor. More... | |
virtual | ~MaskedLattice () |
a virtual destructor is needed so that it will use the actual destructor in the derived class More... | |
virtual Lattice< T > * | clone () const |
Make a copy of the derived object (reference semantics). More... | |
virtual Bool | isMasked () const |
Has the object really a mask? The default implementation returns True if the MaskedLattice has a region with a mask. More... | |
virtual Bool | hasPixelMask () const |
Does the lattice have a pixelmask? The default implementation returns False. More... | |
virtual const Lattice< Bool > & | pixelMask () const |
Get access to the pixelmask. More... | |
virtual Lattice< Bool > & | pixelMask () |
const LatticeRegion & | region () const |
Get the region used. More... | |
Bool | getMask (COWPtr< Array< Bool > > &buffer, Bool removeDegenerateAxes=False) const |
Get the mask or a slice from the mask. More... | |
Bool | getMaskSlice (COWPtr< Array< Bool > > &buffer, const Slicer §ion, Bool removeDegenerateAxes=False) const |
Bool | getMaskSlice (COWPtr< Array< Bool > > &buffer, const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False) const |
Bool | getMaskSlice (COWPtr< Array< Bool > > &buffer, const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False) const |
Bool | getMask (Array< Bool > &buffer, Bool removeDegenerateAxes=False) |
Bool | getMaskSlice (Array< Bool > &buffer, const Slicer §ion, Bool removeDegenerateAxes=False) |
Bool | getMaskSlice (Array< Bool > &buffer, const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False) |
Bool | getMaskSlice (Array< Bool > &buffer, const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False) |
Array< Bool > | getMask (Bool removeDegenerateAxes=False) const |
Array< Bool > | getMaskSlice (const Slicer §ion, Bool removeDegenerateAxes=False) const |
Array< Bool > | getMaskSlice (const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False) const |
Array< Bool > | getMaskSlice (const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False) const |
virtual Bool | doGetMaskSlice (Array< Bool > &buffer, const Slicer §ion) |
The function (in the derived classes) doing the actual work. More... | |
Public Member Functions inherited from casacore::Lattice< T > | |
virtual | ~Lattice () |
a virtual destructor is needed so that it will use the actual destructor in the derived class More... | |
virtual DataType | dataType () const |
Get the data type of the lattice. More... | |
T | operator() (const IPosition &where) const |
Return the value of the single element located at the argument IPosition. More... | |
virtual T | getAt (const IPosition &where) const |
virtual void | putAt (const T &value, const IPosition &where) |
Put the value of a single element. More... | |
Bool | get (COWPtr< Array< T > > &buffer, Bool removeDegenerateAxes=False) const |
Functions which extract an Array of values from a Lattice. More... | |
Bool | getSlice (COWPtr< Array< T > > &buffer, const Slicer §ion, Bool removeDegenerateAxes=False) const |
Bool | getSlice (COWPtr< Array< T > > &buffer, const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False) const |
Bool | getSlice (COWPtr< Array< T > > &buffer, const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False) const |
Bool | get (Array< T > &buffer, Bool removeDegenerateAxes=False) |
Bool | getSlice (Array< T > &buffer, const Slicer §ion, Bool removeDegenerateAxes=False) |
Bool | getSlice (Array< T > &buffer, const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False) |
Bool | getSlice (Array< T > &buffer, const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False) |
Array< T > | get (Bool removeDegenerateAxes=False) const |
Array< T > | getSlice (const Slicer §ion, Bool removeDegenerateAxes=False) const |
Array< T > | getSlice (const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False) const |
Array< T > | getSlice (const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False) const |
void | putSlice (const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride) |
A function which places an Array of values within this instance of the Lattice at the location specified by the IPosition "where", incrementing by "stride". More... | |
void | putSlice (const Array< T > &sourceBuffer, const IPosition &where) |
void | put (const Array< T > &sourceBuffer) |
virtual void | set (const T &value) |
Set all elements in the Lattice to the given value. More... | |
virtual void | apply (T(*function)(T)) |
Replace every element, x, of the Lattice with the result of f(x). More... | |
virtual void | apply (T(*function)(const T &)) |
virtual void | apply (const Functional< T, T > &function) |
void | operator+= (const Lattice< T > &other) |
Add, subtract, multiple, or divide by another Lattice. More... | |
void | operator-= (const Lattice< T > &other) |
void | operator*= (const Lattice< T > &other) |
void | operator/= (const Lattice< T > &other) |
virtual void | copyData (const Lattice< T > &from) |
Copy the data from the given lattice to this one. More... | |
virtual void | copyDataTo (Lattice< T > &to) const |
Copy the data from this lattice to the given lattice. More... | |
virtual uInt | advisedMaxPixels () const |
This function returns the advised maximum number of pixels to include in the cursor of an iterator. More... | |
virtual LatticeIterInterface< T > * | makeIter (const LatticeNavigator &navigator, Bool useRef) const |
These functions are used by the LatticeIterator class to generate an iterator of the correct type for a specified Lattice. More... | |
virtual Bool | doGetSlice (Array< T > &buffer, const Slicer §ion)=0 |
The functions (in the derived classes) doing the actual work. More... | |
virtual void | doPutSlice (const Array< T > &buffer, const IPosition &where, const IPosition &stride)=0 |
Public Member Functions inherited from casacore::LatticeBase | |
virtual | ~LatticeBase () |
A virtual destructor is needed so that it will use the actual destructor in the derived class. More... | |
virtual Bool | isPersistent () const |
Is the lattice persistent and can it be loaded by other processes as well? That is the case for a PagedArray or PagedImage and for an ImageExpr which does not use transient lattices or regions. More... | |
virtual Bool | isPaged () const |
Is the lattice paged to disk? The default implementation returns False. More... | |
virtual Bool | canReferenceArray () const |
Can the lattice data be referenced as an array section? That is the case for an ArrayLattice or a Temp/SubLattice using it. More... | |
virtual Bool | isWritable () const |
Is the lattice writable? The default implementation returns True. More... | |
virtual void | save (const String &fileName) const |
Save the image in an AipsIO file with the given name. More... | |
virtual Bool | lock (FileLocker::LockType, uInt nattempts) |
It is strongly recommended to use class LatticeLocker to handle lattice locking. More... | |
virtual void | unlock () |
virtual Bool | hasLock (FileLocker::LockType) const |
virtual void | resync () |
Resynchronize the Lattice object with the lattice file. More... | |
virtual void | flush () |
Flush the data (but do not unlock). More... | |
virtual void | tempClose () |
Temporarily close the lattice. More... | |
virtual void | reopen () |
Explicitly reopen the temporarily closed lattice. More... | |
virtual IPosition | shape () const =0 |
Return the shape of the Lattice including all degenerate axes (ie. More... | |
virtual uInt | ndim () const |
Return the number of axes in this Lattice. More... | |
virtual size_t | nelements () const |
Return the total number of elements in this Lattice. More... | |
size_t | size () const |
Bool | conform (const LatticeBase &other) const |
Return a value of "True" if this instance of Lattice and 'other' have the same shape, otherwise returns a value of "False". More... | |
IPosition | niceCursorShape (uInt maxPixels) const |
Returns a recommended cursor shape for iterating through all the pixels in the Lattice. More... | |
IPosition | niceCursorShape () const |
virtual IPosition | doNiceCursorShape (uInt maxPixels) const |
The function (in the derived classes) doing the actual work. More... | |
virtual uInt | maximumCacheSize () const |
Maximum cache size - not necessarily all used. More... | |
virtual void | setMaximumCacheSize (uInt howManyPixels) |
Set the maximum (allowed) cache size as indicated. More... | |
virtual void | setCacheSizeInTiles (uInt howManyTiles) |
Set the actual cache size for this Array to be big enough for the indicated number of tiles. More... | |
virtual void | setCacheSizeFromPath (const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath) |
Set the cache size as to "fit" the indicated path. More... | |
virtual void | clearCache () |
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSize was called. More... | |
virtual void | showCacheStatistics (ostream &os) const |
Report on cache success. More... | |
Protected Member Functions | |
ImageInterface & | operator= (const ImageInterface &other) |
Assignment (copy semantics) is only useful for derived classes. More... | |
Bool | restoreImageInfo (const RecordInterface &rec) |
Restore the image info from the record. More... | |
void | setLogMember (const LoggerHolder &logger) |
Set the image logger variable. More... | |
void | setImageInfoMember (const ImageInfo &imageInfo) |
Set the image info variable. More... | |
void | setCoordsMember (const CoordinateSystem &coords) |
Set the coordinate system variable. More... | |
void | setUnitMember (const Unit &unit) |
Set the unit variable. More... | |
void | setMiscInfoMember (const RecordInterface &rec) |
Set the miscinfo variable. More... | |
RegionHandler * | getRegionHandler () |
Get access to the region handler. More... | |
Protected Member Functions inherited from casacore::MaskedLattice< T > | |
MaskedLattice< T > & | operator= (const MaskedLattice< T > &) |
Assignment can only be used by derived classes. More... | |
virtual const LatticeRegion * | getRegionPtr () const =0 |
Get a pointer to the region used. More... | |
Protected Member Functions inherited from casacore::Lattice< T > | |
Lattice () | |
Define default constructor to satisfy compiler. More... | |
virtual void | handleMath (const Lattice< T > &from, int oper) |
Handle the Math operators (+=, -=, *=, /=). More... | |
virtual void | handleMathTo (Lattice< T > &to, int oper) const |
Lattice (const Lattice< T > &) | |
Copy constructor and assignment can only be used by derived classes. More... | |
Lattice< T > & | operator= (const Lattice< T > &) |
template<> | |
void | handleMathTo (Lattice< Bool > &, int) const |
Protected Member Functions inherited from casacore::LatticeBase | |
LatticeBase () | |
Define default constructor to be used by derived classes. More... | |
LatticeBase (const LatticeBase &) | |
Copy constructor and assignment can only be used by derived classes. More... | |
LatticeBase & | operator= (const LatticeBase &) |
void | throwBoolMath () const |
Throw an exception for arithmetic on a Bool Lattice. More... | |
Private Attributes | |
CoordinateSystem | coords_p |
It is the job of the derived class to make these variables valid. More... | |
LoggerHolder | log_p |
ImageInfo | imageInfo_p |
Unit | unit_p |
TableRecord | miscInfo_p |
RegionHandler * | regHandPtr_p |
The region handling object. More... | |
ImageAttrHandler | itsBaseAttrHandler |
The attribute handling object. More... | |
A base class for astronomical images.
Public interface
The ImageInterface class name is derived from its role as the cookie cutter Interface base class for Images.
The ImageInterface class is an abstract base class. All Image classes should derive from this class to ensure functions which operate on Images will work for all Image derivations.
An Image is currently defined as an Array of pixels, a Boolean mask, defining which pixels are valid and coordinates to define the reference frame. The only concrete class currently derived from this Interface is PagedImage, which allows the image to be stored on disk, and only reads specified portions of the image into memory.
As this is an abstract base class it is not possible to construct an instance of this object. It can however be used as a function argument.
eg 1. (used in dImageInterface.cc)
The main purpose of this class is for programming objects, the following example is of how one would derive from ImageInterface:
eg 2.
The use of abstract base classes to guide inheritance seemed appropriate for Images to ensure that CoordinateSystems and masking get handled uniformly.
Definition at line 38 of file PixelRangeDialog.qo.h.
casacore::ImageInterface< T >::ImageInterface | ( | ) |
casacore::ImageInterface< T >::ImageInterface | ( | const RegionHandler & | regionHandler | ) |
Construct for a specific region handler object.
casacore::ImageInterface< T >::ImageInterface | ( | const ImageInterface< T > & | other | ) |
Copy constructor (copy semantics).
|
virtual |
|
inline |
Add the messages from the other image logger to this one.
Definition at line 219 of file ImageInterface.h.
|
virtual |
Get access to the attribute handler.
By default an empty handler is returned where no groups can be added to.
Reimplemented in casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casacore::HDF5Image< T >, casacore::SubImage< T >, casacore::CurvedImage2D< T >, casacore::RebinImage< T >, and casacore::ExtendImage< T >.
Referenced by casacore::ImageInterface< casacore::Complex >::roAttrHandler().
|
inline |
Can the image handle region definition?
Definition at line 257 of file ImageInterface.h.
|
pure virtual |
Implemented in casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casa::ComponentListImage, casacore::ImageConcat< T >, casacore::CurvedImage2D< T >, casacore::HDF5Image< T >, casacore::ImageExpr< T >, casacore::ImageExpr< Bool >, casacore::SubImage< T >, casacore::FITSImage, casacore::MIRIADImage, casacore::TempImage< T >, casacore::TempImage< casacore::DComplex >, casacore::TempImage< casacore::Float >, casacore::TempImage< casacore::Complex >, casacore::FITSQualityImage, casacore::FITSErrorImage, casacore::RebinImage< T >, and casacore::ExtendImage< T >.
|
virtual |
Make a copy of the derived object (reference semantics).
Implements casacore::MaskedLattice< T >.
|
inline |
Definition at line 195 of file ImageInterface.h.
|
virtual |
Define a region/mask belonging to the image.
The group type determines if it stored as a region or mask. If overwrite=False, an exception will be thrown if the region already exists.
An exception is thrown if canDefineRegion is False.
Bool casacore::ImageInterface< T >::fromRecord | ( | String & | error, |
const RecordInterface & | inRec | ||
) |
|
virtual |
Get the name of the default pixelmask.
An empty string is returned if no default pixelmask.
|
virtual |
Get a region/mask belonging to the image from the given group (which can be Any).
Optionally an exception is thrown if the region does not exist. A zero pointer is returned if the region does not exist. The caller has to delete the ImageRegion
object created.
ImageRegion casacore::ImageInterface< T >::getRegion | ( | const String & | regionName, |
RegionHandler::GroupType | = RegionHandler::Any |
||
) | const |
Get a region belonging to the image.
An exception is thrown if the region does not exist.
|
inlineprotected |
Get access to the region handler.
Definition at line 379 of file ImageInterface.h.
|
virtual |
Does the image have a region with the given name?
|
inline |
The ImageInfo object contains some miscellaneous information about the image which unlike that stored in MiscInfo, has a standard list of things, such as the restoring beam.
Note that setImageInfo REPLACES the information with the new information. It is up to the derived class to make the ImageInfo permanent.
Definition at line 240 of file ImageInterface.h.
|
pure virtual |
Get the image type (returns name of derived class).
Reimplemented from casacore::LatticeBase.
Implemented in casa::ComponentListImage, casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casacore::ImageConcat< T >, casacore::ImageExpr< T >, casacore::ImageExpr< Bool >, casacore::CurvedImage2D< T >, casacore::HDF5Image< T >, casacore::SubImage< T >, casacore::FITSImage, casacore::MIRIADImage, casacore::TempImage< T >, casacore::TempImage< casacore::DComplex >, casacore::TempImage< casacore::Float >, casacore::TempImage< casacore::Complex >, casacore::FITSQualityImage, casacore::FITSErrorImage, casacore::RebinImage< T >, and casacore::ExtendImage< T >.
|
virtual |
Function to get a LELCoordinate object containing the coordinates.
Reimplemented from casacore::LatticeBase.
|
inline |
Get access to the LoggerHolder.
Definition at line 204 of file ImageInterface.h.
Referenced by casacore::ImageInterface< casacore::Complex >::logSink(), and casacore::ImageInterface< casacore::Complex >::setLogMember().
|
inline |
Definition at line 206 of file ImageInterface.h.
|
inline |
Allow messages to be logged to this ImageInterface.
Definition at line 212 of file ImageInterface.h.
Referenced by casacore::ImageInterface< casacore::Complex >::logSink().
|
inline |
Definition at line 214 of file ImageInterface.h.
|
virtual |
Make a mask which is suitable for the type of image.
Optionally the mask can be initialized with the given value (by default it will not).
Optionally the mask can be defined as an image region/mask and turned in the default mask for the image. By default it will.
String casacore::ImageInterface< T >::makeUniqueRegionName | ( | const String & | rootName, |
uInt | startNumber = 1 |
||
) | const |
Make a unique region name from the given root name, thus make it such that the name is not already in use for a region or mask.
The root name is returned if it is already unique. Otherwise a number is appended to the root name to make it unique. The number starts at the given number and is incremented until the name is unique.
|
inline |
Often we have miscellaneous information we want to attach to an image.
This is where it goes.
Note that setMiscInfo REPLACES the information with the new information. It can fail if, e.g., the underlying table is not writable.
Definition at line 228 of file ImageInterface.h.
|
pure virtual |
Return the name of the current ImageInterface object.
This will generally be a file name for images that have a persistent form. Any path before the actual file name can be optionally stripped off.
Reimplemented from casacore::LatticeBase.
Implemented in casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casa::ComponentListImage, casacore::ImageConcat< T >, casacore::SubImage< T >, casacore::TempImage< T >, casacore::TempImage< casacore::DComplex >, casacore::TempImage< casacore::Float >, casacore::TempImage< casacore::Complex >, casacore::MIRIADImage, casacore::FITSImage, casacore::CurvedImage2D< T >, casacore::ImageExpr< T >, casacore::ImageExpr< Bool >, casacore::FITSQualityImage, casacore::HDF5Image< T >, casacore::RebinImage< T >, and casacore::ExtendImage< T >.
|
pure virtual |
Check class invariants.
Reimplemented from casacore::LatticeBase.
Implemented in casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casacore::TempImage< T >, casacore::TempImage< casacore::DComplex >, casacore::TempImage< casacore::Float >, casacore::TempImage< casacore::Complex >, casacore::ImageConcat< T >, casacore::MIRIADImage, casacore::FITSImage, casa::ComponentListImage, casacore::SubImage< T >, casacore::CurvedImage2D< T >, casacore::FITSQualityImage, casacore::ImageExpr< T >, casacore::ImageExpr< Bool >, casacore::HDF5Image< T >, casacore::RebinImage< T >, and casacore::ExtendImage< T >.
|
protected |
Assignment (copy semantics) is only useful for derived classes.
|
virtual |
Get the names of all regions/masks.
|
virtual |
Remove a region/mask belonging to the image from the given group (which can be Any).
Optionally an exception is thrown if the region does not exist.
Reimplemented in casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casacore::HDF5Image< T >, casa::ComponentListImage, casacore::TempImage< T >, casacore::TempImage< casacore::DComplex >, casacore::TempImage< casacore::Float >, and casacore::TempImage< casacore::Complex >.
|
virtual |
Rename a region.
If a region with the new name already exists, it is deleted or an exception is thrown (depending on overwrite
). The region name is looked up in the given group(s).
An exception is thrown if the old region name does not exist.
|
pure virtual |
Function which changes the shape of the image (N.B.
the data is thrown away - the Image will be filled with nonsense afterwards)
Implemented in casacore::ImageConcat< T >, casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casa::ComponentListImage, casacore::SubImage< T >, casacore::TempImage< T >, casacore::TempImage< casacore::DComplex >, casacore::TempImage< casacore::Float >, casacore::TempImage< casacore::Complex >, casacore::CurvedImage2D< T >, casacore::ImageExpr< T >, casacore::ImageExpr< Bool >, casacore::HDF5Image< T >, casacore::FITSImage, casacore::RebinImage< T >, casacore::ExtendImage< T >, casacore::MIRIADImage, and casacore::FITSQualityImage.
|
protected |
Restore the image info from the record.
|
inline |
Definition at line 252 of file ImageInterface.h.
|
inline |
Get non-const access to the ImageInfo.
Definition at line 243 of file ImageInterface.h.
|
virtual |
Functions to set or replace the coordinate information in the Image Returns False on failure, e.g.
if the number of axes do not match.
Reimplemented in casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casa::ComponentListImage, and casacore::HDF5Image< T >.
|
inlineprotected |
Set the coordinate system variable.
Definition at line 367 of file ImageInterface.h.
|
virtual |
Set the default pixelmask to the mask with the given name (which has to exist in the "masks" group).
If the image table is writable, the setting is persistent by writing the name as a keyword. If the given regionName is the empty string, the default pixelmask is unset.
Reimplemented in casa::ComponentListImage, casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casacore::HDF5Image< T >, casacore::TempImage< T >, casacore::TempImage< casacore::DComplex >, casacore::TempImage< casacore::Float >, and casacore::TempImage< casacore::Complex >.
|
virtual |
|
protected |
Set the image info variable.
|
inlineprotected |
Set the image logger variable.
Definition at line 360 of file ImageInterface.h.
|
virtual |
|
inlineprotected |
Set the miscinfo variable.
Definition at line 375 of file ImageInterface.h.
|
inlineprotected |
Set the unit variable.
Definition at line 371 of file ImageInterface.h.
|
virtual |
Function which get and set the units associated with the image pixels (i.e.
the "brightness" unit). setUnits()
returns False if it cannot set the unit for some reason (e.g. the underlying file is not writable).
Reimplemented in casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casa::ComponentListImage, and casacore::HDF5Image< T >.
Bool casacore::ImageInterface< T >::toRecord | ( | String & | error, |
RecordInterface & | outRec | ||
) |
Save and restore an ImageInterface object to or from a state Record.
|
inlinevirtual |
Definition at line 182 of file ImageInterface.h.
|
virtual |
Use the mask as specified.
If a mask was already in use, it is replaced by the new one.
Reimplemented in casa::ComponentListImage, casacore::PagedImage< T >, casacore::PagedImage< casacore::Float >, casacore::HDF5Image< T >, casacore::TempImage< T >, casacore::TempImage< casacore::DComplex >, casacore::TempImage< casacore::Float >, and casacore::TempImage< casacore::Complex >.
|
private |
It is the job of the derived class to make these variables valid.
Definition at line 384 of file ImageInterface.h.
Referenced by casacore::ImageInterface< casacore::Complex >::coordinates(), and casacore::ImageInterface< casacore::Complex >::setCoordsMember().
|
private |
Definition at line 386 of file ImageInterface.h.
Referenced by casacore::ImageInterface< casacore::Complex >::imageInfo(), and casacore::ImageInterface< casacore::Complex >::rwImageInfo().
|
private |
The attribute handling object.
Definition at line 394 of file ImageInterface.h.
|
private |
Definition at line 385 of file ImageInterface.h.
Referenced by casacore::ImageInterface< casacore::Complex >::appendLog(), casacore::ImageInterface< casacore::Complex >::logger(), and casacore::ImageInterface< casacore::Complex >::setLogMember().
|
private |
Definition at line 388 of file ImageInterface.h.
Referenced by casacore::ImageInterface< casacore::Complex >::miscInfo(), and casacore::ImageInterface< casacore::Complex >::setMiscInfoMember().
|
private |
The region handling object.
Definition at line 391 of file ImageInterface.h.
Referenced by casacore::ImageInterface< casacore::Complex >::canDefineRegion(), and casacore::ImageInterface< casacore::Complex >::getRegionHandler().
|
private |
Definition at line 387 of file ImageInterface.h.
Referenced by casacore::ImageInterface< casacore::Complex >::setUnitMember(), and casacore::ImageInterface< casacore::Complex >::units().