EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
#include <Region.h>
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. | |