LSST Applications g0d97872fb5+4fd969bb9d,g1653933729+34a971ddd9,g28da252d5a+072f89fe25,g2bbee38e9b+a99b0ab4cd,g2bc492864f+a99b0ab4cd,g2ca4be77d2+c0e3b27cd8,g2cdde0e794+704103fe75,g3156d2b45e+6e87dc994a,g347aa1857d+a99b0ab4cd,g35bb328faa+34a971ddd9,g3a166c0a6a+a99b0ab4cd,g3e281a1b8c+8ec26ec694,g4005a62e65+ba0306790b,g414038480c+9ed5ed841a,g569e0e2b34+cb4faa46ad,g5a97de2502+520531a62c,g717e5f8c0f+29153700a5,g7ede599f99+367733290c,g80478fca09+17051a22cc,g82479be7b0+f2f1ea0a87,g858d7b2824+29153700a5,g8b782ad322+29153700a5,g8cd86fa7b1+05420e7f7d,g9125e01d80+34a971ddd9,ga5288a1d22+e7f674aaf3,gae0086650b+34a971ddd9,gae74b0b5c6+45ef5cdc51,gb58c049af0+ace264a4f2,gc28159a63d+a99b0ab4cd,gcf0d15dbbd+8051a81198,gda6a2b7d83+8051a81198,gdaeeff99f8+7774323b41,gdf4d240d4a+34a971ddd9,ge2409df99d+cb167bac99,ge33fd446bb+29153700a5,ge79ae78c31+a99b0ab4cd,gf0baf85859+890af219f9,gf5289d68f6+9faa5c5784,w.2024.36
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.