EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
#include <Raster.h>
Copy constructor.
Public Member Functions | |
virtual | ~VecRaster ()=default |
Destructor. | |
VecRaster (const VecRaster &)=default | |
Copy constructor. | |
VecRaster (VecRaster &&)=default | |
Move constructor. | |
VecRaster & | operator= (const VecRaster &)=default |
Copy assignment. | |
VecRaster & | operator= (VecRaster &&)=default |
Move assignment. | |
VecRaster (Position< n > shape, std::vector< std::decay_t< T >> vec) | |
Create a raster with given shape and values. More... | |
VecRaster (Position< n > shape) | |
Create a VecRaster with given shape and empty data. | |
VecRaster ()=default | |
Create an empty VecRaster. | |
const std::vector< std::decay_t< T > > & | vector () const |
Const reference to the vector. | |
std::vector< std::decay_t< T > > & | moveTo (std::vector< std::decay_t< T >> &destination) |
Move the vector outside the raster. More... | |
Public Member Functions inherited from Euclid::Fits::Raster< T, 2 > | |
virtual | ~Raster ()=default |
Destructor. | |
Raster (const Raster< T, n > &rhs)=default | |
Copy constructor. | |
Raster (Raster< T, n > &&rhs)=default | |
Move constructor. | |
Raster (Position< n > rasterShape) | |
Create a raster with given shape. | |
Raster< T, n > & | operator= (const Raster< T, n > &rhs)=default |
Copy assignment. | |
Raster< T, n > & | operator= (Raster< T, n > &&rhs)=default |
Move assignment. | |
const Position< n > & | shape () const |
Get the raster shape. | |
Region< n > | domain () const |
Get raster domain. More... | |
long | dimension () const |
Dimension. More... | |
long | size () const |
Number of pixels. | |
long | length () const |
Length along given axis. | |
const T * | data () const |
Const pointer to the first data element. | |
T * | data () |
Pointer to the first data element. | |
long | index (const Position< n > &pos) const |
Raw index of a position. | |
const T & | operator[] (const Position< n > &pos) const |
Pixel at given position. | |
T & | operator[] (const Position< n > &pos) |
Pixel at given position. | |
const T & | at (const Position< n > &pos) const |
Access the value at given position. More... | |
T & | at (const Position< n > &pos) |
Access the value at given position. More... | |
const PtrRaster< const T, m > | slice (const Region< n > ®ion) const |
Create a slice from a given region. More... | |
PtrRaster< T, m > | slice (const Region< n > ®ion) |
Create a slice from a given region. More... | |
const PtrRaster< const T, n > | section (long front, long back) const |
Create a section at given index. More... | |
PtrRaster< T, n > | section (long front, long back) |
Create a section at given index. More... | |
const PtrRaster< const T, n==-1 ? -1 :n - 1 > | section (long index) const |
Create a section at given index. More... | |
PtrRaster< T, n==-1 ? -1 :n - 1 > | section (long index) |
Create a section at given index. More... | |
bool | isContiguous (const Region< n > ®ion) const |
Check whether a region is made of contiguous values in memory. More... | |
Additional Inherited Members | |
Public Types inherited from Euclid::Fits::Raster< T, 2 > | |
using | Value = T |
The pixel value type. | |
Static Public Attributes inherited from Euclid::Fits::Raster< T, 2 > | |
static constexpr long | Dim |
The dimension template parameter. More... | |