Go to the documentation of this file.
28 #ifndef IMAGES_SUBIMAGE_H
29 #define IMAGES_SUBIMAGE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/images/Images/ImageInterface.h>
35 #include <casacore/casa/Arrays/AxesSpecifier.h>
41 class LattRegionHolder;
44 template <
class T>
class Array;
117 Bool writableIfPossible,
128 Bool writableIfPossible,
248 virtual void flush();
289 #ifndef CASACORE_NO_AUTO_TEMPLATES
290 #include <casacore/images/Images/SubImage.tcc>
291 #endif //# CASACORE_NO_AUTO_TEMPLATES
Interconvert pixel and world coordinates.
A base class for astronomical images.
Specify which elements to extract from an n-dimensional array.
virtual Bool ok() const
Check class invariants.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking and syncing, etc.
virtual Bool canReferenceArray() const
Can the lattice data be referenced as an array section?
ImageInterface< T > * itsImagePtr
A Vector of integers, for indexing into Array<T> objects.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask in use (thus to the pixelmask of the parent).
virtual Bool conform(const Lattice< T > &other) const
returns a value of "True" if this instance of Lattice and 'other' have the same shape,...
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the SubImage.
A subset of a Lattice or MaskedLattice.
SubImage< T > & operator=(const SubImage< T > &other)
Assignment (reference semantics).
A (masked) subset of an ImageInterface object.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
virtual const LatticeRegion * getRegionPtr() const
Get the region/mask object describing this subImage.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
LockType
Define the possible lock types.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
This function is used by the LatticeIterator class to generate an iterator of the correct type for th...
virtual void putAt(const T &value, const IPosition &where)
virtual Bool isWritable() const
Is the SubImage writable?
An optionally strided region in a Lattice.
virtual T getAt(const IPosition &where) const
Get or put a single element in the lattice.
virtual String name(Bool stripPath=False) const
Return the name of the parent ImageInterface object.
SubLattice< T > * itsSubLatPtr
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
Class to hold a region of interest in an image.
Abstract base class to steer lattice iterators.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
void convertIPosition(Vector< Float > &x, const IPosition &pos) const
Helper.
virtual Bool isMasked() const
Is the SubImage masked? It is if its parent image or its region is masked.
virtual IPosition shape() const
Returns the shape of the SubImage including all degenerate axes (i.e.
this file contains all the compiler specific defines
virtual Bool hasPixelMask() const
Does the image object have a pixelmask? It does if its parent has a pixelmask.
virtual size_t nelements() const
Returns the total number of elements in this SubImage.
virtual Bool isPaged() const
Is the SubImage paged to disk?
void setMembers()
Set the other members to the one in itsImagePtr.
virtual Bool isPersistent() const
A SubImage is persistent if no region is applied to the parent image.
void setCoords(const CoordinateSystem &coords, Bool preserveAxesOrder)
Set the coordinates.
template <class T, class U> class vector;
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
virtual ImageAttrHandler & attrHandler(Bool createHandler=False)
Get access to the attribute handler (of the parent image).
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
virtual String imageType() const
Get the image type (returns name of derived class).
Specification of axes to keep or remove.
SubImage()
The default constructor.
Abstract base class for an image attributes handler.
Define the shape and tile shape.
virtual Bool hasLock(FileLocker::LockType) const
virtual uInt ndim() const
Returns the number of axes in this SubImage.
A base class for Lattice iterators.