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;
155 virtual void save (
const String& fileName)
const;
196 virtual void flush();
315 #ifndef CASACORE_NO_AUTO_TEMPLATES 316 #include <casacore/images/Images/ImageConcat.tcc> 317 #endif //# CASACORE_NO_AUTO_TEMPLATES A Vector of integers, for indexing into Array<T> objects.
Concatenates lattices along a specified axis.
virtual ~ImageConcat()
Destructor.
virtual Bool isWritable() const
If all of the underlying lattices are writable returns True.
Coordinate::Type originalAxisType_p
Provides and lists information about the header of an 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 IPosition doNiceCursorShape(uInt maxPixels) const
Return the best cursor shape.
virtual Bool isMasked() const
Has the object really a mask?
void checkNonConcatAxisCoordinates(LogIO &os, const ImageInterface< T > &image, Bool relax)
Double coordConvert(Int &worldAxis, LogIO &os, const CoordinateSystem &cSys, uInt axis, Double pixelCoord) const
virtual Bool ok() const
Check class invariants.
Concatenates images along a specified axis.
virtual void resize(const TiledShape &)
Throws an excpetion as you cannot reshape an ImageConcat object.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual get of the data.
A templated, abstract base class for array-like objects with masks.
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 Bool isPersistent() const
Is the lattice persistent and can it be loaded by other processes as well?
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
A base class for Lattice iterators.
Define the shape and tile shape.
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 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 String imageType() const
Get the image type (returns name of derived class).
virtual void save(const String &fileName) const
Save the image in file 'image.concat' in a directory with the given name.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
These are the implementations of the LatticeIterator letters.
bool Bool
Define the standard types used by Casacore.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
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 IPosition shape() const
Return the shape of the concatenated image.
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)
virtual String name(Bool stripPath=False) const
Return the name of the current ImageInterface object.
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 hasPixelMask() const
Does the image have a pixelmask?
LatticeConcat< T > latticeConcat_p
virtual void tempClose()
Temporarily close the lattice.
LockType
Define the possible lock types.
virtual Bool hasLock(FileLocker::LockType) const
this file contains all the compiler specific defines
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.