EleFits  4.0.0
A modern C++ API on top of CFitsIO

◆ readRegionTo() [1/2]

template<typename T , long m, long n>
void Euclid::Cfitsio::ImageIo::readRegionTo ( fitsfile *  fptr,
const Fits::Region< n > &  region,
Fits::Raster< T, m > &  destination 
)

Read a region of the current image HDU into a pre-existing raster.

Parameters
regionThe source region
destinationThe destination raster

Similarly to a blit operation, this method reads the data line-by-line directly in a destination raster.