LSST Applications g04e9c324dd+8c5ae1fdc5,g134cb467dc+b203dec576,g18429d2f64+358861cd2c,g199a45376c+0ba108daf9,g1fd858c14a+dd066899e3,g262e1987ae+ebfced1d55,g29ae962dfc+72fd90588e,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+b668f15bc5,g4595892280+3897dae354,g47891489e3+abcf9c3559,g4d44eb3520+fb4ddce128,g53246c7159+8c5ae1fdc5,g67b6fd64d1+abcf9c3559,g67fd3c3899+1f72b5a9f7,g74acd417e5+cb6b47f07b,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g89139ef638+abcf9c3559,g8d7436a09f+bcf525d20c,g8ea07a8fe4+9f5ccc88ac,g90f42f885a+6054cc57f1,g97be763408+06f794da49,g9dd6db0277+1f72b5a9f7,ga681d05dcb+7e36ad54cd,gabf8522325+735880ea63,gac2eed3f23+abcf9c3559,gb89ab40317+abcf9c3559,gbf99507273+8c5ae1fdc5,gd8ff7fe66e+1f72b5a9f7,gdab6d2f7ff+cb6b47f07b,gdc713202bf+1f72b5a9f7,gdfd2d52018+8225f2b331,ge365c994fd+375fc21c71,ge410e46f29+abcf9c3559,geaed405ab2+562b3308c0,gf9a733ac38+8c5ae1fdc5,w.2025.35
LSST Data Management Base Package
Loading...
Searching...
No Matches
gaussianparametricellipse.cc File Reference
#include <memory>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "lsst/gauss2d/fit/parameters.h"
#include "lsst/gauss2d/fit/gaussianparametricellipse.h"
#include "pybind11.h"

Go to the source code of this file.

Functions

void bind_gaussianparametricellipse (py::module &m)
 

Function Documentation

◆ bind_gaussianparametricellipse()

void bind_gaussianparametricellipse ( py::module & m)

Definition at line 39 of file gaussianparametricellipse.cc.

39 {
40 auto _e = py::classh<g2f::GaussianParametricEllipse, lsst::gauss2d::EllipseData, g2f::ParametricEllipse>(
41 m, "GaussianParametricEllipse")
42 .def(py::init<double, double, double>(), "sigma_x"_a = 0, "sigma_y"_a = 0, "rho"_a = 0)
46 "sigma_x"_a = nullptr, "sigma_y"_a = nullptr, "rho"_a = nullptr)
47 .def_property("rho", &g2f::GaussianParametricEllipse::get_rho,
49 .def_property("sigma_x", &g2f::GaussianParametricEllipse::get_sigma_x,
51 .def_property("sigma_y", &g2f::GaussianParametricEllipse::get_sigma_y,
53 .def_property("size_x", &g2f::GaussianParametricEllipse::get_size_x,
55 .def_property("size_y", &g2f::GaussianParametricEllipse::get_size_y,
57 .def_property("xyr", &g2f::GaussianParametricEllipse::get_xyr,
59 .def_property_readonly("rho_param", &g2f::GaussianParametricEllipse::get_rho_param)
60 .def_property_readonly("sigma_x_param",
62 .def_property_readonly("sigma_y_param",
64 .def_property_readonly("size_x_param",
66 .def_property_readonly("size_y_param",
68 .def_property_readonly("rho_param_ptr",
70 .def_property_readonly("sigma_x_param_ptr",
72 .def_property_readonly("sigma_y_param_ptr",
74 .def_property_readonly("size_x_param_ptr",
76 .def_property_readonly("size_y_param_ptr",
79 .def("__repr__",
80 [](const g2f::GaussianParametricEllipse &self) { return self.repr(true); })
82}
A Parameter-based implementation of lsst::gauss2d::EllipseData and ParametricEllipse.
std::string str() const override
Return a brief, human-readable string representation of this.
std::shared_ptr< SizeYParameterD > get_size_y_param_ptr() override
void set(double sigma_x, double sigma_y, double rho) override
Set sigma_x, sigma_y, rho.
void set_sigma_y(double sigma_y) override
Set the y-axis dispersion (sigma)
SigmaXParameterD & get_sigma_x_param() const
Explicit alias for get_size_x_param.
void set_rho(double rho) override
Set the correlation parameter (rho)
std::shared_ptr< SigmaYParameterD > get_sigma_y_param_ptr()
Explicit alias for get_sigma_y_param_ptr.
std::shared_ptr< SigmaXParameterD > get_sigma_x_param_ptr()
Explicit alias for get_sigma_x_param_ptr.
std::string repr(bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override
Return a full, callable string representation of this.
SigmaYParameterD & get_sigma_y_param() const
Explicit alias for get_size_y_param.
std::shared_ptr< SizeXParameterD > get_size_x_param_ptr() override
double get_size_y() const override
Get the size_y value.
std::shared_ptr< RhoParameterD > get_rho_param_ptr() override
void set_sigma_x(double sigma_x) override
Set the x-axis dispersion (sigma)
std::array< double, 3 > get_xyr() const override
Get sigma_x, sigma_y, rho.
void set_xyr(const std::array< double, 3 > &xyr) override
Set sigma_x, sigma_y, rho from an array.
double get_size_x() const override
Get the size_x value.