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

◆ readRegionTo() [2/2]

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

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

Parameters
regionThe source region
destinationThe destination subraster

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