|
LSST Applications g00d0e8bbd7+8c5ae1fdc5,g013ef56533+603670b062,g083dd6704c+2e189452a7,g199a45376c+0ba108daf9,g1c5cce2383+bc9f6103a4,g1fd858c14a+cd69ed4fc1,g210f2d0738+c4742f2e9e,g262e1987ae+612fa42d85,g29ae962dfc+83d129e820,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+5eaa884f2a,g47891489e3+e32160a944,g53246c7159+8c5ae1fdc5,g5b326b94bb+dcc56af22d,g64539dfbff+c4742f2e9e,g67b6fd64d1+e32160a944,g74acd417e5+c122e1277d,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g88cb488625+47d24e4084,g89139ef638+e32160a944,g8d7436a09f+d14b4ff40a,g8ea07a8fe4+b212507b11,g90f42f885a+e1755607f3,g97be763408+34be90ab8c,g98df359435+ec1fa61bf1,ga2180abaac+8c5ae1fdc5,ga9e74d7ce9+43ac651df0,gbf99507273+8c5ae1fdc5,gc2a301910b+c4742f2e9e,gca7fc764a6+e32160a944,gd7ef33dd92+e32160a944,gdab6d2f7ff+c122e1277d,gdb1e2cdc75+1b18322db8,ge410e46f29+e32160a944,ge41e95a9f2+c4742f2e9e,geaed405ab2+0d91c11c6d,w.2025.44
LSST Data Management Base Package
|
Namespaces | |
| namespace | detail |
| namespace | fit |
| namespace | python |
| namespace | utils |
Classes | |
| class | Centroid |
| A 2D coordinate representing the center of a plane figure. More... | |
| class | CentroidData |
| Interface for an object storing Centroid data. More... | |
| class | CentroidValues |
| A CentroidData storing centroid values as shared_ptrs. More... | |
| class | ConvolvedGaussian |
| A convolution of a Gaussian source and kernel. More... | |
| class | ConvolvedGaussians |
| A collection of ConvolvedGaussian objects. More... | |
| class | CoordinateSystem |
| A coordinate system specifying image scale and orientation. More... | |
| class | Covariance |
| A representation of a 2D Gaussian with x and y standard deviations and a covariance value. More... | |
| class | Ellipse |
| An Ellipse with sigma_x, sigma_y, and rho values. More... | |
| class | EllipseData |
| Interface for an object storing Ellipse data. More... | |
| class | EllipseMajor |
| An Ellipse with r_major, axrat and angle values. More... | |
| class | EllipseValues |
| An EllipseData storing sigma_x, sigma_y, rho values as shared_ptrs. More... | |
| class | Gaussian |
| A 2D Gaussian with a Centroid, Ellipse, and integral. More... | |
| class | GaussianEvaluator |
| A class that evaluates 2D Gaussians and renders them in images. More... | |
| class | GaussianIntegral |
| Interface for the normalization (total integrated value) of a 2D Gaussian. More... | |
| class | GaussianIntegralValue |
| A GaussianIntegral storing a float value. More... | |
| class | Gaussians |
| An array of Gaussian objects. More... | |
| class | Image |
| A 2D image with scalar numeric values, using CRTP. More... | |
| class | ImageArray |
| An array of compatible Images. More... | |
| class | Object |
| A generic object from the gauss2d library. More... | |
| class | VectorImage |
Typedefs | |
| typedef size_t | idx_type |
Enumerations | |
| enum class | BackgroundType : unsigned char { none = 0 , constant = 1 } |
| enum class | OutputType : unsigned char { none = 0 , overwrite = 1 , add = 2 } |
| enum class | GradientType : unsigned char { none = 0 , loglike = 1 , jacobian = 2 } |
Functions | |
| template<typename T, class Data, class Indices> | |
| std::shared_ptr< Data > | make_gaussians_pixel (const std::shared_ptr< const ConvolvedGaussians > gaussians, std::shared_ptr< Data > output=nullptr, const unsigned int n_rows=0, const unsigned int n_cols=0, const std::shared_ptr< const CoordinateSystem > coordsys=nullptr, bool to_add=false) |
| Add gaussians to an image, creating one if needed. | |
| template<typename T1, class C1, typename T2, class C2> | |
| bool | images_compatible (const Image< T1, C1 > &img1, const Image< T2, C2 > &img2, bool compare_coordsys=true, std::string *msg=nullptr) |
| Return if two images are compatible. | |
| template<typename T> | |
| std::string | repr_ptr (T ptr, bool name_keywords, std::string_view namespace_separator) |
| template<typename T> | |
| std::string | repr_iter_ptr (const T &container, bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) |
| template<bool is_wrapper, typename T> | |
| std::string | repr_iter_ref (const T &container, bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) |
| template<bool is_wrapper, typename T> | |
| std::string | repr_map_ref (const T &container, bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) |
| template<typename T> | |
| std::string | str_ptr (T ptr) |
| template<typename T> | |
| std::string | str_iter_ptr (const T &container) |
| template<bool is_wrapper, typename T> | |
| std::string | str_iter_ref (const T &container) |
| template<bool is_wrapper, typename T> | |
| std::string | str_map_ref (const T &container) |
| template<typename T> | |
| void | stream_iter_ref (const T &container, std::ostream &stream) |
| template<typename T, typename R> | |
| std::string | replace_all (std::string target, T token, R replacement) |
| Replace a token inside a target string with another string. | |
| template<typename T> | |
| std::string | replace_all_none (std::string target, T token) |
| Replace a token inside a target string with nothing. | |
| template std::string | replace_all< const std::string, const std::string > (std::string target, const std::string token, const std::string replacement) |
| template std::string | replace_all< std::string_view, const std::string > (std::string target, std::string_view token, const std::string replacement) |
| template std::string | replace_all< const std::string, std::string_view > (std::string target, const std::string token, std::string_view replacement) |
| template std::string | replace_all< std::string_view, std::string_view > (std::string target, std::string_view token, std::string_view replacement) |
| template std::string | replace_all_none< const std::string > (std::string target, const std::string token) |
| template std::string | replace_all_none< std::string_view > (std::string target, std::string_view token) |
| template<typename T> | |
| std::string | to_string_float (const T value, const int precision=6, const bool scientific=true) |
| template<template< typename... > class Container, class Value> | |
| std::string | to_string_float_iter (const Container< Value > &container, const int precision=6, const bool scientific=true) |
| template<template< typename... > class Container, class Value> | |
| std::string | to_string_iter (const Container< Value > &container) |
| template<typename T> | |
| constexpr std::string_view | type_name () |
| Get a string representation of an arbitrary C++ type. | |
| template<> | |
| constexpr std::string_view | type_name< void > () |
| template<typename T> | |
| std::string | type_name_str (bool strip_namespace=false, std::string_view namespace_str=detail::NAMESPACE_SEPARATOR) |
| Get a string representation of an arbitrary C++ type, potentially modifying its namespace prefix. | |
| template<class S> | |
| std::pair< S, S > | sincos (S arg) |
| std::ostream & | operator<< (std::ostream &out, const Covariance &obj) |
| std::pair< double, double > | get_x_pm (double sigma_x_sq, double sigma_y_sq, double cov_xy) |
| void | init (EllipseMajor &ellipse, const Covariance &covar, bool degrees) |
| std::ostream & | operator<< (std::ostream &out, const Gaussian &g) |
Variables | |
| const double | M_HWHM_SIGMA = 1.1774100225154746910115693264599 |
| const double | M_SIGMA_HWHM = 0.84932180028801904272150283410295 |
| const double | M_PI_180 = M_PI / 180. |
| const double | M_180_PI = 180. / M_PI |
| const size_t | N_EXTRA_MAP = 2 |
| const size_t | N_EXTRA_FACTOR = 3 |
| const size_t | N_PARAMS_GAUSS2D = 6 |
| typedef size_t lsst::gauss2d::idx_type |
|
strong |
| Enumerator | |
|---|---|
| none | |
| constant | |
Definition at line 44 of file evaluate.h.
|
strong |
| Enumerator | |
|---|---|
| none | |
| loglike | |
| jacobian | |
Definition at line 53 of file evaluate.h.
|
strong |
| Enumerator | |
|---|---|
| none | |
| overwrite | |
| add | |
Definition at line 48 of file evaluate.h.
| std::pair< double, double > lsst::gauss2d::get_x_pm | ( | double | sigma_x_sq, |
| double | sigma_y_sq, | ||
| double | cov_xy ) |
Definition at line 327 of file ellipse.cc.
| bool lsst::gauss2d::images_compatible | ( | const Image< T1, C1 > & | img1, |
| const Image< T2, C2 > & | img2, | ||
| bool | compare_coordsys = true, | ||
| std::string * | msg = nullptr ) |
Return if two images are compatible.
Compatible means that they have the same dimensions in both axes and equivalent coordinate systems.
| T1 | The data type of C1. |
| C1 | The class of the first Image. |
| T2 | The data type of C2. |
| C2 | The class of the second Image. |
| img1 | The first image. |
| img2 | The second image. |
| msg | A string to append error messages to, if not null. |
Definition at line 70 of file image.h.
| void lsst::gauss2d::init | ( | EllipseMajor & | ellipse, |
| const Covariance & | covar, | ||
| bool | degrees ) |
Definition at line 345 of file ellipse.cc.
| std::shared_ptr< Data > lsst::gauss2d::make_gaussians_pixel | ( | const std::shared_ptr< const ConvolvedGaussians > | gaussians, |
| std::shared_ptr< Data > | output = nullptr, | ||
| const unsigned int | n_rows = 0, | ||
| const unsigned int | n_cols = 0, | ||
| const std::shared_ptr< const CoordinateSystem > | coordsys = nullptr, | ||
| bool | to_add = false ) |
Add gaussians to an image, creating one if needed.
| t | The data type (e.g. float, int) |
| Data | The data array class |
| Indices | The index array class (usually a size_t array) |
| gaussians | The gaussians to add |
| output | The image to add gaussians to. If null, it will be initialized |
| n_rows | The number of rows, if creating a new image |
| n_cols | The number of columns, if creating a new image |
| coordsys | The image's coordinate system |
| to_add | Whether to add to an existing image. throws if output is nullptr. |
Definition at line 1233 of file evaluate.h.
| std::ostream & lsst::gauss2d::operator<< | ( | std::ostream & | out, |
| const Covariance & | obj ) |
Definition at line 137 of file ellipse.cc.
| std::ostream & lsst::gauss2d::operator<< | ( | std::ostream & | out, |
| const Gaussian & | g ) |
Definition at line 103 of file gaussian.cc.
| std::string lsst::gauss2d::replace_all | ( | std::string | target, |
| T | token, | ||
| R | replacement ) |
Replace a token inside a target string with another string.
| target | The string to replace and return. |
| token | The token to replace. |
| replacement | The token to replace with. |
Definition at line 23 of file string_utils.h.
| template std::string lsst::gauss2d::replace_all< const std::string, const std::string > | ( | std::string | target, |
| const std::string | token, | ||
| const std::string | replacement ) |
| template std::string lsst::gauss2d::replace_all< const std::string, std::string_view > | ( | std::string | target, |
| const std::string | token, | ||
| std::string_view | replacement ) |
| template std::string lsst::gauss2d::replace_all< std::string_view, const std::string > | ( | std::string | target, |
| std::string_view | token, | ||
| const std::string | replacement ) |
| template std::string lsst::gauss2d::replace_all< std::string_view, std::string_view > | ( | std::string | target, |
| std::string_view | token, | ||
| std::string_view | replacement ) |
| std::string lsst::gauss2d::replace_all_none | ( | std::string | target, |
| T | token ) |
Replace a token inside a target string with nothing.
| target | The string to replace and return. |
| token | The token to replace with an empty string. |
Definition at line 43 of file string_utils.h.
| template std::string lsst::gauss2d::replace_all_none< const std::string > | ( | std::string | target, |
| const std::string | token ) |
| template std::string lsst::gauss2d::replace_all_none< std::string_view > | ( | std::string | target, |
| std::string_view | token ) |
| std::string lsst::gauss2d::repr_iter_ptr | ( | const T & | container, |
| bool | name_keywords = false, | ||
| std::string_view | namespace_separator = Object::CC_NAMESPACE_SEPARATOR ) |
Definition at line 88 of file object.h.
| std::string lsst::gauss2d::repr_iter_ref | ( | const T & | container, |
| bool | name_keywords = false, | ||
| std::string_view | namespace_separator = Object::CC_NAMESPACE_SEPARATOR ) |
| std::string lsst::gauss2d::repr_map_ref | ( | const T & | container, |
| bool | name_keywords = false, | ||
| std::string_view | namespace_separator = Object::CC_NAMESPACE_SEPARATOR ) |
Definition at line 118 of file object.h.
| std::string lsst::gauss2d::repr_ptr | ( | T | ptr, |
| bool | name_keywords, | ||
| std::string_view | namespace_separator ) |
Definition at line 82 of file object.h.
| std::pair< S, S > lsst::gauss2d::sincos | ( | S | arg | ) |
| std::string lsst::gauss2d::str_iter_ptr | ( | const T & | container | ) |
| std::string lsst::gauss2d::str_iter_ref | ( | const T & | container | ) |
| std::string lsst::gauss2d::str_map_ref | ( | const T & | container | ) |
| std::string lsst::gauss2d::str_ptr | ( | T | ptr | ) |
| void lsst::gauss2d::stream_iter_ref | ( | const T & | container, |
| std::ostream & | stream ) |
| std::string lsst::gauss2d::to_string_float | ( | const T | value, |
| const int | precision = 6, | ||
| const bool | scientific = true ) |
Definition at line 15 of file to_string.h.
| std::string lsst::gauss2d::to_string_float_iter | ( | const Container< Value > & | container, |
| const int | precision = 6, | ||
| const bool | scientific = true ) |
Definition at line 28 of file to_string.h.
| std::string lsst::gauss2d::to_string_iter | ( | const Container< Value > & | container | ) |
Definition at line 38 of file to_string.h.
|
constexpr |
Get a string representation of an arbitrary C++ type.
| T | The type to stringify |
Definition at line 84 of file type_name.h.
|
constexpr |
Definition at line 39 of file type_name.h.
| std::string lsst::gauss2d::type_name_str | ( | bool | strip_namespace = false, |
| std::string_view | namespace_str = detail::NAMESPACE_SEPARATOR ) |
Get a string representation of an arbitrary C++ type, potentially modifying its namespace prefix.
| T | The type to stringify. |
| strip_namespace | Whether to strip the namespace prefix entirely. |
| namespace_str | A string to replace the standard C++ namespace separator (i.e. ::) with; generally . for Python. |
Definition at line 104 of file type_name.h.
| const double lsst::gauss2d::M_HWHM_SIGMA = 1.1774100225154746910115693264599 |
| const double lsst::gauss2d::M_SIGMA_HWHM = 0.84932180028801904272150283410295 |
| const size_t lsst::gauss2d::N_EXTRA_FACTOR = 3 |
Definition at line 60 of file evaluate.h.
| const size_t lsst::gauss2d::N_EXTRA_MAP = 2 |
Definition at line 59 of file evaluate.h.
| const size_t lsst::gauss2d::N_PARAMS_GAUSS2D = 6 |
Definition at line 61 of file evaluate.h.