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;
45 template <
class T>
class ImageSummary;
46 template <
class T>
class MaskedLattice;
331 #ifndef CASACORE_NO_AUTO_TEMPLATES
332 #include <casacore/images/Images/ImageConcat.tcc>
Type
This enum lists the types of the derived classes.
LockType
Define the possible lock types.
void setLattice(MaskedLattice< T > &lattice)
Add a clone of the lattice to the list to be concatenated.
ImageConcat(const JsonKVMap &, const String &fileName)
Construct the object from a Json file with the given name.
ImageConcat(uInt axis, Bool tempClose=True, Bool combineMiscInfo=True)
Constructor.
uInt axis() const
Returns the current concatenation axis (0 relative)
void setCoordinates()
Updates the CoordinateSystem in the ImageConcat image.
void checkNonConcatAxisCoordinates(LogIO &os, const ImageInterface< T > &image, Bool relax)
virtual Bool setMiscInfo(const RecordInterface &newInfo)
Replace the miscinfo in the ConcatImage, which writes the image.concat file.
void _checkContiguous(const IPosition &shape1, const CoordinateSystem &cSys1, const CoordinateSystem &cSys2, LogIO &os, uInt axis, Bool relax)
Vector< Double > worldValues_p
virtual Bool hasLock(FileLocker::LockType) const
virtual Bool setImageInfo(const ImageInfo &info)
Set the ImageInfo in the super class ImageInterface and in each underlying image.
virtual void save(const String &fileName) const
Save the image in file 'image.concat' in a directory with the given name.
virtual void flush()
Flush the data (but do not unlock).
ImageInterface< T > & image(uInt i) const
Return a reference to the i-th image.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
virtual Bool hasPixelMask() const
Does the image have a pixelmask?
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?
virtual String name(Bool stripPath=False) const
Return the name of the current ImageInterface object.
virtual Bool isWritable() const
If all of the underlying lattices are writable returns True.
ImageConcat()
Default constructor, Sets the concatenation axis to 0.
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
virtual Lattice< Bool > & pixelMask()
void setImage(ImageInterface< T > &image, Bool relax)
Sets a new image into the list to be concatenated.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual put of the data into the Lattice.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
These are the implementations of the LatticeIterator letters.
Double coordConvert(Int &worldAxis, LogIO &os, const CoordinateSystem &cSys, uInt axis, Double pixelCoord) const
virtual Bool ok() const
Check class invariants.
virtual void resize(const TiledShape &)
Throws an excpetion as you cannot reshape an ImageConcat object.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking and syncing, etc.
virtual Bool isMasked() const
Has the object really a mask?
Coordinate::Type originalAxisType_p
LatticeConcat< T > latticeConcat_p
virtual ~ImageConcat()
Destructor.
ImageConcat(const ImageConcat< T > &other)
Copy constructor (reference semantics)
virtual const LatticeRegion * getRegionPtr() const
Get the region used (always returns 0)
uInt imageDim() const
Returns the number of dimensions of the input images/lattices Returns 0 if none yet set.
virtual IPosition shape() const
Return the shape of the concatenated image.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
Vector< Double > pixelValues_p
virtual String imageType() const
Get the image type (returns name of derived class).
void _updatePixelAndWorldValues(uInt iIm)
Vector< Int > makeNewStokes(const Vector< Int > &stokes1, const Vector< Int > &stokes2)
uInt nimages() const
Return the number of images/lattices set so far.
ImageConcat< T > & operator=(const ImageConcat< T > &other)
Assignment operator (reference semantics)
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Return the best cursor shape.
virtual void tempClose()
Temporarily close the lattice.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.