EleFits  5.3.1
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
Typedefs | Classes | Macros
Image data classes

Detailed Description

Image data unit containers and tools.

Raster, VecRaster, PtrRaster

The central class for image data representation is Raster. It is the in-memory representation of the n-D arrays of FITS. A raster is defined by:

Two specialization are provided for convenience:

Functions which return a Raster generally return a VecRaster (e.g. ImageRaster::read()). All methods which take a Raster as input accept whatever flavor of it.

For convenience, make_raster() functions enable raster creation without template parameters.

Position, Region, PositionIterator

In addition, a few helper classes are defined:

Typedefs

template<typename T , long N = 2>
using PtrRaster = Raster< T, N, DataContainerHolder< T, T * > >
 Raster which points to some external data (THolder = T*).
 
template<typename T , long N = 2>
using VecRaster = Raster< T, N, DataContainerHolder< T, std::vector< T > > >
 Raster which owns a data vector (THolder = std::vector<T>).
 

Classes

class  Position< N >
 n-dimensional pixel position or image shape, i.e. set of integer coordinates. More...
 
class  PositionIterator< N >
 A helper class to screen a Region. More...
 
class  Raster< T, N, THolder >
 Data of a n-dimensional image (2D by default). More...
 
struct  Region< N >
 A n-D rectangle region, defined by its front and back positions (both inclusive), or front position and shape. More...
 

Macros

#define ELEFITS_FOREACH_RASTER_TYPE(MACRO)
 Loop over supported raster types. More...