28 #ifndef IMAGES_IMAGEUTILITIES_H
29 #define IMAGES_IMAGEUTILITIES_H
42 template <
class T>
class ImageInterface;
43 template <
class T>
class Quantum;
45 class CoordinateSystem;
51 class ImageAttrHandler;
103 static std::shared_ptr<ImageInterface<T> >
openImage (
const String& fileName);
107 template <
typename T,
typename U>
113 template <
typename T,
typename U>
126 template <
typename T>
145 template <
typename T>
165 const Int& pixelAxis,
205 #ifndef CASACORE_NO_AUTO_TEMPLATES
206 #include <casacore/images/Images/ImageUtilities2.tcc>
207 #endif //# CASACORE_NO_AUTO_TEMPLATES
Utility functions for Image manipulation.
A Vector of integers, for indexing into Array<T> objects.
A 1-D Specialization of the Array class.
LatticeExprNode log(const LatticeExprNode &expr)
static void openImage(PtrHolder< ImageInterface< T > > &image, const String &fileName)
Open disk image (can be any registered image).
static void copyAttributes(ImageAttrHandler &out, ImageAttrHandler &in)
Copy the attributes from one image to another.
PtrHolder(const PtrHolder< T > &other)
ostream-like interface to creating log messages.
static void getUnitAndDoppler(String &xUnit, String &doppler, const uInt axis, const CoordinateSystem &csys)
Hold and delete pointers not deleted by object destructors.
Abstract base class for an image attributes handler.
Specification of axes to keep or remove.
static void copyMiscellaneous(ImageInterface< T > &out, const ImageInterface< U > &in, Bool copyImageInfo=True)
Copy MiscInfo, ImageInfo, brightness unit and logger (history) from in to out.
Represents a Gaussian restoring beam associated with an image.
Class for masking an Array for operations on that Array.
static void addDegenerateAxes(LogIO &os, PtrHolder< ImageInterface< T > > &outImage, const ImageInterface< T > &inImage, const String &outFile, Bool direction, Bool spectral, const String &stokes, Bool linear, Bool tabular, Bool overwrite, Bool silent=False)
Add one degenerate axis for each of the specified coordinate types.
static String shortAxisName(const String &axisName)
Convert long axis names "Right Ascension", "Declination", "Frequency" and "Velocity" to "RA"...
Define the shape and tile shape.
A base class for astronomical images.
Interface for converting between world and pixel coordinates.
bool Bool
Define the standard types used by Casacore.
static void bin(MaskedArray< T > &out, Coordinate &coordOut, const MaskedArray< T > &in, const Coordinate &coordIn, uInt axis, uInt bin)
Function to bin up (average data) one axis of an N-D MaskedArray.
static GaussianBeam makeFakeBeam(LogIO &logIO, const CoordinateSystem &csys, Bool suppressWarnings=False)
static Bool pixToWorld(Vector< String > &sWorld, const CoordinateSystem &cSys, const Int &pixelAxis, const Vector< Int > &cursorAxes, const IPosition &blc, const IPosition &trc, const Vector< Double > &pixels, const Int &prec, const Bool usePrecForMixed=False)
This function converts pixel coordinates to world coordinates.
String: the storage and methods of handling collections of characters.
static void writeImage(const TiledShape &mapShape, const CoordinateSystem &coordinateInfo, const String &imageName, const Array< Float > &pixels, LogIO &log, const Array< Bool > &pixelMask=Array< Bool >())
write the specified image and add the specified pixels to it.
Interconvert pixel and world coordinates.
static void copyMask(ImageInterface< T > &out, const ImageInterface< U > &in, const String &maskOut, const String &maskIn, AxesSpecifier axesSpecifier)
Copy a mask from one image to another.