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

#include <Region.h>

Class Description

template<long n = 2>
struct Euclid::Fits::Region< n >

A n-D rectangle region, defined by its front and back positions (both inclusive), or front position and shape.

Like Position, this class stores no pixel values, but coordinates.

Public Member Functions

Position< n > shape () const
 Compute the region shape.
 
long dimension () const
 Get the number of dimensions.
 
long size () const
 Compute the region size, i.e. number of pixels.
 

Static Public Member Functions

static Region< n > fromShape (Position< n > frontPosition, Position< n > shape)
 Create a region from a front position and shape.
 
static Region< n > whole ()
 Create an unlimited region. More...
 

Public Attributes

Position< n > front
 The front position in the region.
 
Position< n > back
 The back position in the region.
 

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