28 #ifndef IMAGES_IMAGECONCAT_H
29 #define IMAGES_IMAGECONCAT_H
44 class CoordinateSystem;
156 virtual void save (
const String& fileName)
const;
210 virtual void flush();
331 #ifndef CASACORE_NO_AUTO_TEMPLATES
332 #include <casacore/images/Images/ImageConcat.tcc>
333 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
virtual Bool hasLock(FileLocker::LockType) const
Concatenates lattices along a specified axis.
virtual ~ImageConcat()
Destructor.
virtual Bool isPersistent() const
Is the lattice persistent and can it be loaded by other processes as well?
Coordinate::Type originalAxisType_p
Provides and lists information about the header of an image.
virtual IPosition shape() const
Return the shape of the concatenated image.
void _updatePixelAndWorldValues(uInt iIm)
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual put of the data into the Lattice.
virtual const LatticeRegion * getRegionPtr() const
Get the region used (always returns 0)
virtual String imageType() const
Get the image type (returns name of derived class).
ImageInterface< T > & image(uInt i) const
Return a reference to the i-th image.
virtual String name(Bool stripPath=False) const
Return the name of the current ImageInterface object.
void checkNonConcatAxisCoordinates(LogIO &os, const ImageInterface< T > &image, Bool relax)
virtual Bool hasPixelMask() const
Does the image have a pixelmask?
Double coordConvert(Int &worldAxis, LogIO &os, const CoordinateSystem &cSys, uInt axis, Double pixelCoord) const
Concatenates images along a specified axis.
virtual void resize(const TiledShape &)
Throws an excpetion as you cannot reshape an ImageConcat object.
uInt axis() const
Returns the current concatenation axis (0 relative)
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual get of the data.
virtual Bool setMiscInfo(const RecordInterface &newInfo)
Replace the miscinfo in the ConcatImage, which writes the image.concat file.
A templated, abstract base class for array-like objects with masks.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
ostream-like interface to creating log messages.
Vector< Double > worldValues_p
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
These are the implementations of the LatticeIterator letters.
virtual Bool isMasked() const
Has the object really a mask?
A base class for Lattice iterators.
Define the shape and tile shape.
virtual void save(const String &fileName) const
Save the image in file 'image.concat' in a directory with the given name.
void setLattice(MaskedLattice< T > &lattice)
Add a clone of the lattice to the list to be concatenated.
virtual void flush()
Flush the data (but do not unlock).
A base class for astronomical images.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking and syncing, etc.
Class to hold a collection of JSON key:value pairs.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
virtual Bool isWritable() const
If all of the underlying lattices are writable returns True.
bool Bool
Define the standard types used by Casacore.
Vector< Double > pixelValues_p
void setCoordinates()
Updates the CoordinateSystem in the ImageConcat image.
ImageConcat< T > & operator=(const ImageConcat< T > &other)
Assignment operator (reference semantics)
template <class T, class U> class vector;
Type
This enum lists the types of the derived classes.
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
Specify which elements to extract from an n-dimensional array.
uInt nimages() const
Return the number of images/lattices set so far.
Vector< Int > makeNewStokes(const Vector< Int > &stokes1, const Vector< Int > &stokes2)
void _checkContiguous(const IPosition &shape1, const CoordinateSystem &cSys1, const CoordinateSystem &cSys2, LogIO &os, uInt axis, Bool relax)
uInt imageDim() const
Returns the number of dimensions of the input images/lattices Returns 0 if none yet set...
String: the storage and methods of handling collections of characters.
An optionally strided region in a Lattice.
virtual Bool ok() const
Check class invariants.
LatticeConcat< T > latticeConcat_p
Abstract base class for Record classes.
virtual void tempClose()
Temporarily close the lattice.
LockType
Define the possible lock types.
virtual Bool setImageInfo(const ImageInfo &info)
Set the ImageInfo in the super class ImageInterface and in each underlying image. ...
Miscellaneous information related to an image.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Return the best cursor shape.
Interconvert pixel and world coordinates.
Abstract base class to steer lattice iterators.
void setImage(ImageInterface< T > &image, Bool relax)
Sets a new image into the list to be concatenated.
ImageConcat()
Default constructor, Sets the concatenation axis to 0.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.