LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
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.