28 #ifndef IMAGES_HDF5IMAGE_H
29 #define IMAGES_HDF5IMAGE_H
129 const String& nameOfNewFile);
217 virtual void apply (T (*
function)(T));
218 virtual void apply (T (*
function)(
const T& ));
280 virtual void flush();
339 #ifndef CASACORE_NO_AUTO_TEMPLATES
340 #include <casacore/images/Images/HDF5Image.tcc>
341 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
void attach_logtable()
This must be called in every constructor and place where the image is attached to a new image...
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
virtual void setDefaultMask(const String &maskName)
Set the default pixelmask to the mask with the given name (which has to exist in the "masks" group)...
virtual IPosition shape() const
Return the shape of the image.
virtual Bool hasPixelMask() const
Does the image object use a pixelmask?
void applyMask(const String &maskName)
Map a domain object into a range object via operator().
LatticeRegion * regionPtr_p
virtual String imageType() const
Get the image type (returns name of derived class).
virtual Bool setUnits(const Unit &newUnits)
Function which sets the units associated with the image pixels (i.e.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask used.
virtual Bool setImageInfo(const ImageInfo &info)
The ImageInfo object contains some miscellaneous information about the image, which unlike that store...
virtual Bool isPaged() const
An HDF5Image is always paged to disk.
static Bool hasHDF5Support()
Check if there is HDF5 support compiled in.
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).
virtual void flush()
Flush the data.
virtual String name(Bool stripPath=False) const
Return the current HDF5 file name.
Abstract base class for an image attributes handler.
virtual void apply(T(*function)(T))
Replace every element, x, of the lattice with the result of f(x).
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Help the user pick a cursor for most efficient access.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the ImageExpr.
HDF5Image< T > & operator=(const HDF5Image< T > &other)
Assignment operator (reference semantics).
A base class for Lattice iterators.
Define the shape and tile shape.
Referenced counted pointer for constant data.
A base class for astronomical images.
virtual Bool ok() const
Check for symmetry in data members.
Class to specify which mask to use in an image.
virtual Bool setMiscInfo(const RecordInterface &newInfo)
Replace the miscinfo in the HDF5Image.
DataType hdf5imagePixelType(const String &fileName)
Determine the pixel type in the HDF5Image contained in fileName.
virtual const LatticeRegion * getRegionPtr() const
Get a pointer the default pixelmask object used with this image.
Bool canUseHDF5Image()
Tell if HDF5 images can be used.
virtual T getAt(const IPosition &where) const
These are the true implementations of the paran operator.
void restoreUnits(const RecordInterface &rec)
HDF5Image(const TiledShape &mapShape, const CoordinateSystem &coordinateInfo, const String &nameOfNewFile)
Construct a new Image from shape and coordinate information.
void applyMaskSpecifier(const MaskSpecifier &)
bool Bool
Define the standard types used by Casacore.
Read, store, and manipulate astronomical images in HDF5 format.
Specify which elements to extract from an n-dimensional array.
ImageAttrHandlerHDF5 itsAttrHandler
virtual Bool isWritable() const
Is the HDF5Image writable?
virtual Bool isPersistent() const
An HDF5Image is always persistent.
Bool isHDF5Image(const String &fileName)
Check if this HDF5 file is an HDF5 image.
void restoreMiscInfo(const RecordInterface &rec)
Abstract base class for an image attributes handler.
String: the storage and methods of handling collections of characters.
An optionally strided region in a Lattice.
HDF5Image< T > & operator+=(const Lattice< T > &other)
Add a lattice to this image.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer &theSlice)
Function which extracts an array from the map.
Abstract base class for Record classes.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
virtual void useMask(MaskSpecifier=MaskSpecifier())
Use the mask as specified.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
This is the implementation of the letter for the envelope Iterator class; Note: Not for public use ...
Miscellaneous information related to an image.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Function to replace the values in the map with soureBuffer.
virtual ImageAttrHandler & attrHandler(Bool createHandler=False)
Get access to the attribute handler.
A Lattice that is read from or written to an HDF5 dataset.
void check_conformance(const Lattice< T > &other)
virtual Bool setCoordinateInfo(const CoordinateSystem &coords)
Flushes the new coordinate system to disk if the file is writable.
GroupType
Define the possible group types (regions or masks).
Interconvert pixel and world coordinates.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static const CountedPtr< HDF5File > & getFile(void *imagePtr)
Function to return the internal HDF5File object to the RegionHandler.
Abstract base class to steer lattice iterators.
void restoreImageInfo(const RecordInterface &rec)