LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
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 ) |
Definition at line 101 of file object.h.
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 ) |
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 | ) |
Definition at line 148 of file object.h.
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.