|
LSST Applications g00d0e8bbd7+edbf708997,g03191d30f7+9ce8016dbd,g1955dfad08+0bd186d245,g199a45376c+5137f08352,g1fd858c14a+a888a50aa2,g262e1987ae+45f9aba685,g29ae962dfc+1c7d47a24f,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+eed17d2c67,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+c4107e45b5,g67b6fd64d1+6dc8069a4c,g74acd417e5+f452e9c21a,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+2025e9ce17,g7cc15d900a+2d158402f9,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d4809ba88+c4107e45b5,g8d7436a09f+e96c132b44,g8ea07a8fe4+db21c37724,g98df359435+aae6d409c1,ga2180abaac+edbf708997,gac66b60396+966efe6077,gb632fb1845+88945a90f8,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gca7fc764a6+6dc8069a4c,gd7ef33dd92+6dc8069a4c,gda68eeecaf+7d1e613a8d,gdab6d2f7ff+f452e9c21a,gdbb4c4dda9+c4107e45b5,ge410e46f29+6dc8069a4c,ge41e95a9f2+c4107e45b5,geaed405ab2+e194be0d2b,w.2025.47
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.