Go to the documentation of this file.
28 #ifndef IMAGES_IMAGEEXPR_H
29 #define IMAGES_IMAGEEXPR_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/images/Images/ImageInterface.h>
35 #include <casacore/lattices/LEL/LatticeExpr.h>
36 #include <casacore/casa/Containers/Record.h>
37 #include <casacore/casa/Quanta/Unit.h>
45 template <
class T>
class Array;
46 class LatticeNavigator;
241 #ifndef CASACORE_NO_AUTO_TEMPLATES
242 #include <casacore/images/Images/ImageExpr.tcc>
243 #endif //# CASACORE_NO_AUTO_TEMPLATES
void init(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName, const JsonKVMap &)
A base class for astronomical images.
Specify which elements to extract from an n-dimensional array.
virtual const LatticeRegion * getRegionPtr() const
Get the region used.
const LatticeExpr< T > & expression() const
Get the lattice expression.
virtual Bool isWritable() const
Returns False, as the ImageExpr is not writable.
A Vector of integers, for indexing into Array<T> objects.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking and syncing.
virtual void save(const String &fileName) const
Save the image in an AipsIO file with the given name.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
These are the implementations of the LatticeIterator letters.
virtual IPosition shape() const
return the shape of the ImageExpr
ImageExpr(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName=String())
Construct an ImageExpr from a LatticeExpr.
ImageExpr(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName, const LELImageCoord &imCoord)
Same as previous constructor, but the coordinates are taken from the given LELImageCoord object.
Class to allow C++ expressions involving lattices.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer &theSlice)
Do the actual get of the data.
virtual Bool isMasked() const
Has the object really a mask?
LockType
Define the possible lock types.
ImageExpr< T > & operator=(const ImageExpr< T > &other)
Assignment (reference semantics)
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Help the user pick a cursor for most efficient access if they only want pixel values and don't care a...
An optionally strided region in a Lattice.
Class to hold a collection of JSON key:value pairs.
virtual Bool hasLock(FileLocker::LockType) const
virtual String name(Bool stripPath=False) const
If the object is persistent, the file name is given.
Hold mathematical expressions involving ImageInterface objects.
virtual Bool isPersistent() const
Is the lattice persistent and can it be loaded by other processes as well?
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
ImageExpr(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName, const JsonKVMap &)
Abstract base class to steer lattice iterators.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
putSlice is not possible on an expression, so it throws an exception.
virtual String imageType() const
Get the image type (returns name of derived class).
void setFileName(const String &name)
Set the file name.
this file contains all the compiler specific defines
LatticeExpr< T > latticeExpr_p
ImageExpr(const ImageExpr< T > &other)
Copy constructor (reference semantics)
The letter class for image coordinates.
~ImageExpr()
Destructor does nothing.
Abstract base class for Record classes.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
ImageExpr()
The default constructor.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
virtual Bool setMiscInfo(const RecordInterface &newInfo)
Replace the miscinfo in the ImageExpr, which writes the image.expr file.
virtual Bool ok() const
Check class invariants.
Define the shape and tile shape.
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the ImageExpr.
A base class for Lattice iterators.