LSST Applications g04dff08e69+fafbcb10e2,g0d33ba9806+e09a96fa4e,g0fba68d861+cc01b48236,g1e78f5e6d3+fb95f9dda6,g1ec0fe41b4+f536777771,g1fd858c14a+ae46bc2a71,g35bb328faa+fcb1d3bbc8,g4af146b050+dd94f3aad7,g4d2262a081+7ee6f976aa,g53246c7159+fcb1d3bbc8,g5a012ec0e7+b20b785ecb,g60b5630c4e+e09a96fa4e,g6273192d42+bf8cfc5e62,g67b6fd64d1+4086c0989b,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g87b7deb4dc+831c06c8fc,g8852436030+54b48a5987,g89139ef638+4086c0989b,g9125e01d80+fcb1d3bbc8,g94187f82dc+e09a96fa4e,g989de1cb63+4086c0989b,g9f33ca652e+64be6d9d51,g9f7030ddb1+d11454dffd,ga2b97cdc51+e09a96fa4e,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+23605820ec,gb58c049af0+f03b321e39,gb89ab40317+4086c0989b,gcf25f946ba+54b48a5987,gd6cbbdb0b4+af3c3595f5,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+15f2daff9d,ge278dab8ac+d65b3c2b70,ge410e46f29+4086c0989b,gf67bdafdda+4086c0989b,v29.0.0.rc5
LSST Data Management Base Package
|
A 2D image with scalar numeric values, using CRTP. More...
#include <image.h>
Public Member Functions | |
Image (size_t n_rows, size_t n_cols, const T *value_init=_value_default_ptr(), std::shared_ptr< const CoordinateSystem > coordsys=nullptr)=delete | |
Image (std::shared_ptr< const CoordinateSystem > coordsys=nullptr) | |
~Image ()=default | |
T & | _get_value (size_t row, size_t col) |
T & | _get_value_impl (size_t row, size_t col) |
T & | _get_value_unchecked (size_t row, size_t col) |
T & | _get_value_unchecked_impl (size_t row, size_t col)=delete |
void | _check_row_col (size_t row, size_t col) const |
void | _check_row_col_impl (size_t row, size_t col) const |
const CoordinateSystem & | get_coordsys () const |
std::shared_ptr< const CoordinateSystem > | get_coordsys_ptr_const () const |
size_t | get_n_cols () const |
size_t | get_n_cols_impl () const =delete |
size_t | get_n_rows () const |
size_t | get_n_rows_impl ()=delete |
void | add_value (size_t row, size_t col, T value) |
void | add_value_impl (size_t row, size_t col, T value) |
void | add_value_unchecked (size_t row, size_t col, T value) |
void | add_value_unchecked_impl (size_t row, size_t col, T value) |
void | fill (T value) |
void | fill_impl (T value) |
T | get_value (size_t row, size_t col) const |
T | get_value_impl (size_t row, size_t col) const |
T | get_value_unchecked (size_t row, size_t col) const |
T | get_value_unchecked_impl (size_t row, size_t col) const =delete |
void | set_value (size_t row, size_t col, T value) |
void | set_value_impl (size_t row, size_t col, T value) |
void | set_value_unchecked (size_t row, size_t col, T value) |
void | set_value_unchecked_impl (size_t row, size_t col, T value) |
std::array< size_t, 2 > | shape () const |
size_t | size () const |
std::string | repr (bool name_keywords, std::string_view namespace_separator) const override |
Return a full, callable string representation of this. | |
std::string | str () const override = "Attempted to insert a monochromatic image into a mutli-band image" |
Return a brief, human-readable string representation of this. | |
Image< T, C > & | operator+= (T value) |
Image< T, C > & | operator*= (T value) |
bool | operator== (const Image &other) const |
const bool | operator!= (const Image &other) const |
Static Public Member Functions | |
static const T * | _value_default_ptr () |
static std::string_view | null_str (const std::string_view &namespace_separator) |
Static Public Attributes | |
static constexpr T | _value_default = 0 |
static constexpr std::string_view | CC_NAMESPACE_SEPARATOR = "::" |
The C++ namespace separator. | |
static constexpr std::string_view | NULL_STR_GENERAL = "None" |
static constexpr std::string_view | PY_NAMESPACE_SEPARATOR = "." |
A 2D image with scalar numeric values, using CRTP.
Basic implementations of most functions are provided. Derived classes should override any and all if the default implementations are not efficient enough.
t | The numeric type. |
C | The specialized class. |
|
explicitdelete |
|
inlineexplicit |
|
default |
|
inline |
|
inline |
|
inline |
Definition at line 123 of file image.h.
|
inline |
Definition at line 124 of file image.h.
|
inline |
|
inlinedelete |
|
inlinestatic |
Definition at line 121 of file image.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 159 of file image.h.
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inlinedelete |
|
inlinestaticinherited |
Definition at line 49 of file object.h.
|
inline |
|
inline |
Definition at line 213 of file image.h.
|
inline |
Definition at line 202 of file image.h.
|
inline |
|
inlineoverridevirtual |
Return a full, callable string representation of this.
name_keywords | Whether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python). |
namespace_separator | The string to use to delimit namespaces, i.e. :: in C++ and . in Python. |
Implements lsst::gauss2d::Object.
Definition at line 190 of file image.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Return a brief, human-readable string representation of this.
Implements lsst::gauss2d::Object.
Definition at line 197 of file image.h.
|
staticconstexpr |
|
staticconstexprinherited |
|
staticconstexprinherited |
|
staticconstexprinherited |