28 #ifndef IMAGES_HDF5IMAGE_H 29 #define IMAGES_HDF5IMAGE_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/images/Images/ImageInterface.h> 34 #include <casacore/images/Images/ImageAttrHandlerHDF5.h> 35 #include <casacore/lattices/Lattices/HDF5Lattice.h> 38 #include <casacore/casa/iosfwd.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)...
void applyMask(const String &maskName)
virtual Bool isPaged() const
An HDF5Image is always paged to disk.
Map a domain object into a range object via operator().
LatticeRegion * regionPtr_p
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 ...
virtual Bool setUnits(const Unit &newUnits)
Function which sets the units associated with the image pixels (i.e.
virtual Bool hasPixelMask() const
Does the image object use a pixelmask?
virtual Bool setImageInfo(const ImageInfo &info)
The ImageInfo object contains some miscellaneous information about the image, which unlike that store...
virtual Bool isWritable() const
Is the HDF5Image writable?
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.
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 void resize(const TiledShape &newShape)
Function which changes the shape of the ImageExpr.
HDF5Image< T > & operator=(const HDF5Image< T > &other)
Assignment operator (reference semantics).
virtual T getAt(const IPosition &where) const
These are the true implementations of the paran operator.
A base class for Lattice iterators.
Define the shape and tile shape.
Referenced counted pointer for constant data.
A base class for astronomical images.
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 IPosition doNiceCursorShape(uInt maxPixels) const
Help the user pick a cursor for most efficient access.
Bool canUseHDF5Image()
Tell if HDF5 images can be used.
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.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
Read, store, and manipulate astronomical images in HDF5 format.
template <class T, class U> class vector;
Specify which elements to extract from an n-dimensional array.
ImageAttrHandlerHDF5 itsAttrHandler
Bool isHDF5Image(const String &fileName)
Check if this HDF5 file is an HDF5 image.
virtual String name(Bool stripPath=False) const
Return the current HDF5 file name.
virtual const LatticeRegion * getRegionPtr() const
Get a pointer the default pixelmask object used with this image.
virtual String imageType() const
Get the image type (returns name of derived class).
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
void restoreMiscInfo(const RecordInterface &rec)
virtual Bool ok() const
Check for symmetry in data members.
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.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask used.
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 Bool isPersistent() const
An HDF5Image is always persistent.
virtual void useMask(MaskSpecifier=MaskSpecifier())
Use the mask as specified.
Miscellaneous information related to an image.
virtual IPosition shape() const
Return the shape of the 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.
this file contains all the compiler specific defines
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)