EleFits  4.0.0
A modern C++ API on top of CFitsIO
List of all members
Euclid::Fits::ImageRaster Class Reference

#include <ImageRaster.h>

Class Description

Reader-writer for the image data unit.

This handler provides methods to access image metadata (image-related keyword records) and data.

Reading methods either return a VecRaster or fill an existing Raster.

Data can be read and written region-wise. Source and destination regions are specified by a FileMemRegions object.

See also
Raster
Subraster

Public Member Functions

Image properties.
const std::type_inforeadTypeid () const
 Read the image pixel value type.
 
long readSize () const
 Read the number of pixels in the image.
 
template<long n = 2>
Position< n > readShape () const
 Read the image shape.
 
template<long n = 2>
void updateShape (const Position< n > &shape) const
 Update the image shape.
 
template<typename T , long n = 2>
void reinit (const Position< n > &shape) const
 Update the image type and shape.
 
Read the whole data unit.
template<typename T , long n = 2>
VecRaster< T, n > read () const
 Read the whole data unit as a new VecRaster. More...
 
template<typename T , long n = 2>
void readTo (Raster< T, n > &raster) const
 Read the whole data unit into an existing Raster. More...
 
template<typename T , long n = 2>
void readTo (Subraster< T, n > &subraster) const
 Read the whole data unit into an existing Subraster. More...
 
Read a region of the data unit.
template<typename T , long m, long n>
VecRaster< T, m > readRegion (const Region< n > &region) const
 Read a region as a new VecRaster. More...
 
template<typename T , long m, long n>
void readRegionTo (FileMemRegions< n > regions, Raster< T, m > &raster) const
 Read a region of the data unit into a region of an existing Raster. More...
 
Write the whole data unit.
template<typename T , long n>
void write (const Raster< T, n > &raster) const
 Write the whole data unit.
 
Write a region of the data unit.
template<typename T , long m, long n>
void writeRegion (FileMemRegions< n > regions, const Raster< T, m > &raster) const
 Write a Raster at a given position of the data unit. More...
 

The documentation for this class was generated from the following file:
Euclid::Fits::Region::whole
static Region< n > whole()
Create an unlimited region.
Definition: Region.h:51