lsst.gauss2d gbf99507273+afb4790f61
 
Loading...
Searching...
No Matches
lsst::gauss2d::python::Image< T > Class Template Reference

A Python image using numpy arrrays for storage. More...

#include <image.h>

Inheritance diagram for lsst::gauss2d::python::Image< T >:
lsst::gauss2d::Image< T, Image< T > > lsst::gauss2d::Image< T, Image< T > > lsst::gauss2d::Object lsst::gauss2d::Object

Public Member Functions

 Image (size_t n_rows, size_t n_cols, const T *value_init=lsst::gauss2d::Image< T, Image< T > >::_value_default_ptr(), const std::shared_ptr< const lsst::gauss2d::CoordinateSystem > coordsys=nullptr)
 
 Image (py::array_t< T > data, const std::shared_ptr< const lsst::gauss2d::CoordinateSystem > coordsys=nullptr)
 
T & _get_value_unchecked_impl (size_t row, size_t col)
 
py::array_t< T > & get_data ()
 
size_t get_n_cols_impl () const
 
size_t get_n_rows_impl () const
 
get_value_unchecked_impl (size_t row, size_t col) const
 
void set_value_unchecked_impl (size_t row, size_t col, T value)
 
 Image (size_t n_rows, size_t n_cols, const T *value_init=lsst::gauss2d::Image< T, Image< T > >::_value_default_ptr(), const std::shared_ptr< const lsst::gauss2d::CoordinateSystem > coordsys=nullptr)
 
 Image (py::array_t< T > data, const std::shared_ptr< const lsst::gauss2d::CoordinateSystem > coordsys=nullptr)
 
T & _get_value_unchecked_impl (size_t row, size_t col)
 
py::array_t< T > & get_data ()
 
size_t get_n_cols_impl () const
 
size_t get_n_rows_impl () const
 
get_value_unchecked_impl (size_t row, size_t col) const
 
void set_value_unchecked_impl (size_t row, size_t col, T value)
 
- Public Member Functions inherited from lsst::gauss2d::Image< T, Image< T > >
 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)
 
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 CoordinateSystemget_coordsys () const
 
std::shared_ptr< const CoordinateSystemget_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)
 
get_value (size_t row, size_t col) const
 
get_value_impl (size_t row, size_t col) const
 
get_value_unchecked (size_t row, size_t col) const
 
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
 
std::string str () const override
 Return a brief, human-readable string representation of this.
 
Image< T, Image< T > > & operator+= (T value)
 
Image< T, Image< T > > & operator*= (T value)
 
bool operator== (const Image &other) const
 
const bool operator!= (const Image &other) const
 

Additional Inherited Members

- Static Public Member Functions inherited from lsst::gauss2d::Image< T, Image< T > >
static const T * _value_default_ptr ()
 
- Static Public Member Functions inherited from lsst::gauss2d::Object
static std::string_view null_str (const std::string_view &namespace_separator)
 
- Static Public Attributes inherited from lsst::gauss2d::Image< T, Image< T > >
static constexpr T _value_default
 
- Static Public Attributes inherited from lsst::gauss2d::Object
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 = "."
 

Detailed Description

template<typename T>
class lsst::gauss2d::python::Image< T >

A Python image using numpy arrrays for storage.

Template Parameters
T

Constructor & Destructor Documentation

◆ Image() [1/2]

template<typename T>
lsst::gauss2d::python::Image< T >::Image ( py::array_t< T > data,
const std::shared_ptr< const lsst::gauss2d::CoordinateSystem > coordsys = nullptr )
inlineexplicit

Construct an image from a numpy array.

Parameters
dataThe numpy array to storage the image data.
coordsysThe coordinate system.
Note
Using this constructor will allow leave memory management on the Python side.

◆ Image() [2/2]

template<typename T>
lsst::gauss2d::python::Image< T >::Image ( py::array_t< T > data,
const std::shared_ptr< const lsst::gauss2d::CoordinateSystem > coordsys = nullptr )
inlineexplicit

Construct an image from a numpy array.

Parameters
dataThe numpy array to storage the image data.
coordsysThe coordinate system.
Note
Using this constructor will allow leave memory management on the Python side.

The documentation for this class was generated from the following files: