EleFits  4.0.0
A modern C++ API on top of CFitsIO
Public Member Functions | List of all members
Euclid::Fits::FileMemRegions< n > Class Template Reference

#include <FileMemRegions.h>

Class Description

template<long n = 2>
class Euclid::Fits::FileMemRegions< n >

Mapping between an in-file (Fits image data unit) region and an in-memory (raster) region for reading and writing image regions.

In-file and in-memory regions have the same shape. Both back positions cannot be -1 at the same index at the same time.

Public Member Functions

 FileMemRegions (const Region< n > &fileRegion, const Position< n > &memoryPosition=Position< n >::zero())
 Create a mapping from an in-file region and an in-memory position. More...
 
 FileMemRegions (const Position< n > &filePosition, const Region< n > &memoryRegion=Region< n >::whole())
 Create a mapping from an in-file position and an in-memory region. More...
 
const Region< n > & file () const
 Get the in-file region.
 
const Region< n > & memory () const
 Get the in-memory region.
 
void resolve (const Position< n > &fileBack, const Position< n > &memoryBack)
 Resolve the unknown (-1) indices, given known in-file and in-memory back positions.
 
Position< n > fileToMemory () const
 Compute the translation vector from in-file region to in-memory region.
 
Position< n > memoryToFile () const
 Compute the translation vector from in-memory region to in-file region.
 

The documentation for this class was generated from the following file: