Because FITSMask inherits from Lattice
The FITSMask object is constructed from a TiledFileAccess
object. This must be the same one that the FITSImage
object constructs internally. It is shared by both
FITSImage and FITSMask.
Constructor (for 16 bit integers). The pointer is not cloned, just copied
The scale, offset, magic blanking values must come from
the FITS header ('bscale', 'bzero', 'blank')
Constructor (for 32 bit integers). The pointer is not cloned, just copied
The scale, offset, magic blanking values must come from
the FITS header ('bscale', 'bzero', 'blank')
Copy constructor (reference semantics). The TiledFileAccess pointer
is just copied.
Destructor
The assignment operator with reference semantics.
The TiledFileAccess pointer is just copied.
Make a copy of the object (reference semantics).
Is the FITSMask writable? Returns False. Although it is not hard
to implement writing of the mask, data values would be lost
because of magic blanking.
Return the shape of the Lattice including all degenerate
axes (ie. axes with a length of one)
Do the actual getting of an array of values.
Do the actual getting of an array of values. Throws an exception.
Example
Motivation
FITSImage provides native access to FITS image files
and needede an efficient way to handle the pixel mask
other than iterating all the way through the image
first to set a mask.
Member Description
FITSMask (TiledFileAccess* tiledFileAccess)
Constructor (for 32 bit floating point). The pointer is not cloned,
just copied.
FITSMask (TiledFileAccess* tiledFileAccess, Float scale, Float offset, Short magic, Bool hasBlanks)
FITSMask (TiledFileAccess* tiledFileAccess, Float scale, Float offset, Int magic, Bool hasBlanks)
FITSMask (const FITSMask& other)
virtual ~FITSMask()
FITSMask& operator= (const FITSMask& other)
virtual Lattice<Bool>* clone() const
virtual Bool isWritable() const
IPosition shape() const
virtual Bool doGetSlice (Array<Bool>& buffer, const Slicer& section)
virtual void doPutSlice (const Array<Bool>& sourceBuffer, const IPosition& where, const IPosition& stride)
FITSMask()