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