Go to the documentation of this file.
28 #ifndef IMAGES_IMAGEUTILITIES_H
29 #define IMAGES_IMAGEUTILITIES_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/scimath/Mathematics/GaussianBeam.h>
34 #include <casacore/lattices/Lattices/TiledShape.h>
35 #include <casacore/casa/Utilities/PtrHolder.h>
36 #include <casacore/casa/Utilities/CountedPtr.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
Interconvert pixel and world coordinates.
A base class for astronomical images.
Represents a Gaussian restoring beam associated with an image.
Interface for converting between world and pixel coordinates.
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.
A Vector of integers, for indexing into Array<T> objects.
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.
LatticeExprNode log(const LatticeExprNode &expr)
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.
Utility functions for Image manipulation.
static void openImage(PtrHolder< ImageInterface< T > > &image, const String &fileName)
Open disk image (can be any registered image).
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.
ostream-like interface to creating log messages.
static void copyAttributes(ImageAttrHandler &out, ImageAttrHandler &in)
Copy the attributes from one image to another.
Hold and delete pointers not deleted by object destructors.
static GaussianBeam makeFakeBeam(LogIO &logIO, const CoordinateSystem &csys, Bool suppressWarnings=False)
static void getUnitAndDoppler(String &xUnit, String &doppler, const uInt axis, const CoordinateSystem &csys)
static String shortAxisName(const String &axisName)
Convert long axis names "Right Ascension", "Declination", "Frequency" and "Velocity" to "RA",...
this file contains all the compiler specific defines
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.
PtrHolder(const PtrHolder< T > &other)
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.
Class for masking an Array for operations on that Array.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
Specification of axes to keep or remove.
Abstract base class for an image attributes handler.
A 1-D Specialization of the Array class.
Define the shape and tile shape.