![]() |
EleFits
4.0.0
A modern C++ API on top of CFitsIO
|
#include <TestRaster.h>
A random Raster of given type and shape.
Public Member Functions | |
| RandomRaster (Position< n > rasterShape, T min=almostMin< T >(), T max=almostMax< T >()) | |
| Generate a Raster with given shape. | |
| virtual | ~RandomRaster ()=default |
| Destructor. | |
| bool | approx (const Raster< T, n > &other, double tol=0.01) const |
| Shortcut for rasterApprox. | |
Public Member Functions inherited from Euclid::Fits::VecRaster< T, 2 > | |
| virtual | ~VecRaster ()=default |
| Destructor. | |
| VecRaster (const VecRaster &)=default | |
| Copy constructor. | |
| VecRaster (VecRaster &&)=default | |
| Move constructor. | |
| 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. | |
| VecRaster & | operator= (const VecRaster &)=default |
| Copy assignment. | |
| VecRaster & | operator= (VecRaster &&)=default |
| Move assignment. | |
| 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, n > | |
| virtual | ~Raster ()=default |
| Destructor. | |
| Raster (const Raster< T, n > &rhs)=default | |
| Copy constructor. | |
| Raster (Raster< T, n > &&rhs)=default | |
| Move constructor. | |
| Raster< T, n > & | operator= (const Raster< T, n > &rhs)=default |
| Copy assignment. | |
| Raster< T, n > & | operator= (Raster< T, n > &&rhs)=default |
| Move assignment. | |
| Raster (Position< n > rasterShape) | |
| Create a raster with given shape. | |
| 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. | |
| template<long i> | |
| 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... | |
| template<long m = 2> | |
| const PtrRaster< const T, m > | slice (const Region< n > ®ion) const |
| Create a slice from a given region. More... | |
| template<long m = 2> | |
| 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... | |
| template<long m = 2> | |
| 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, n > | |
| using | Value = T |
| The pixel value type. | |
Static Public Attributes inherited from Euclid::Fits::Raster< T, n > | |
| static constexpr long | Dim = n |
| The dimension template parameter. More... | |