28 #ifndef IMAGES_IMAGEUTILITIES_H
29 #define IMAGES_IMAGEUTILITIES_H
41 template <
class T>
class ImageInterface;
42 template <
class T>
class Vector;
43 template <
class T>
class Quantum;
44 template <
class T>
class MaskedArray;
46 class CoordinateSystem;
52 class ImageAttrHandler;
104 static std::shared_ptr<ImageInterface<T> >
openImage (
const String& fileName);
108 template <
typename T,
typename U>
114 template <
typename T,
typename U>
127 template <
typename T>
146 template <
typename T>
166 const Int& pixelAxis,
206 #ifndef CASACORE_NO_AUTO_TEMPLATES
207 #include <casacore/images/Images/ImageUtilities2.tcc>
208 #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.
std::vector< double > Vector
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.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.