![]() |
EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
#include <FileMemRegions.h>
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. | |