#include <gaussiancomponent.h>
Public Member Functions | |
| GaussianComponent (std::shared_ptr< GaussianParametricEllipse > ellipse=nullptr, std::shared_ptr< CentroidParameters > centroid=nullptr, std::shared_ptr< IntegralModel > integralmodel=nullptr) | |
| void | add_extra_param_map (const Channel &channel, ExtraParamMap &map_extra, const GradParamMap &map_grad, ParameterMap &offsets) const override |
| void | add_extra_param_factors (const Channel &channel, ExtraParamFactors &factors) const override |
| void | add_grad_param_map (const Channel &channel, GradParamMap &map, ParameterMap &offsets) const override |
| void | add_grad_param_factors (const Channel &channel, GradParamFactors &factor) const override |
| std::unique_ptr< const lsst::gauss2d::Gaussians > | get_gaussians (const Channel &channel) const override |
| size_t | get_n_gaussians (const Channel &channel) const override |
| Return the number of Gaussian sub-components controlled by this model. | |
| ParamRefs & | get_parameters (ParamRefs ¶ms, ParamFilter *filter=nullptr) const override |
| ParamCRefs & | get_parameters_const (ParamCRefs ¶ms, ParamFilter *filter=nullptr) const override |
| Same as get_parameters(), but for const refs. | |
| void | set_extra_param_factors (const Channel &channel, ExtraParamFactors &factors, size_t index) const override |
| void | set_grad_param_factors (const Channel &channel, GradParamFactors &factors, size_t index) const override |
| std::string | repr (bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override |
| std::string | str () const override |
Public Member Functions inherited from lsst::gauss2d::fit::EllipticalComponent | |
| EllipticalComponent (std::shared_ptr< ParametricEllipse > ellipse, std::shared_ptr< CentroidParameters > centroid=nullptr, std::shared_ptr< IntegralModel > integralmodel=nullptr) | |
| const CentroidParameters & | get_centroid () const |
| Get the centroid Parameter container. | |
| const ParametricEllipse & | get_ellipse () const |
| Get the ellipse Parameter container. | |
| const IntegralModel & | get_integralmodel () const override |
| std::string | repr (bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override |
| std::string | str () const override |
Public Member Functions inherited from lsst::gauss2d::fit::Parametric | |
| ParamRefs | get_parameters_new (ParamFilter *filter=nullptr) const |
| Same as get_parameters(), but returning a new vector. | |
| ParamCRefs | get_parameters_const_new (ParamFilter *filter=nullptr) const |
| Same as get_parameters_const(), but returning a new vector. | |
Static Public Member Functions | |
| static std::vector< std::shared_ptr< Component > > | make_uniq_default_gaussians (const std::vector< double > &sizes={2.}, bool fixed=true) |
Additional Inherited Members | |
Protected Attributes inherited from lsst::gauss2d::fit::EllipticalComponent | |
| std::shared_ptr< ParametricEllipse > | _ellipse |
| std::shared_ptr< CentroidParameters > | _centroid |
| std::shared_ptr< IntegralModel > | _integralmodel |
A Component consisting of a 2D Gaussian.
|
explicit |
Construct a GaussianComponent from ellipse, centroid and integral parameters.
| ellipse | The GaussianParametricEllipse value; default-initialized if null. |
| centroid | The CentroidParameters value; default-initialized if null. |
| integralmodel | The IntegralModel value; default-initialized if null. |
|
overridevirtual |
Add extra Parameter gradient factors to an existing vector.
| channel | The Channel to add factors for. |
| factors | The ExtraParamFactors to add to. |
Implements lsst::gauss2d::fit::ParametricModel.
|
overridevirtual |
Add extra Parameter indices to a map.
| channel | The Channel to add indices for. |
| map_extra | The ExtraParamMap to add to. |
| map_grad | The completed GradParamMap. |
| offsets | A map of index offsets for Parameters that have already been added. |
Implements lsst::gauss2d::fit::ParametricModel.
|
overridevirtual |
Add Parameter gradient factors to an existing map.
| channel | The Channel to add factors for. |
| factors | The GradParamFactors to add to. |
Implements lsst::gauss2d::fit::ParametricModel.
|
overridevirtual |
Add Parameter gradient indices to an existing map.
| channel | The Channel to add indices for. |
| map | The map to add to. |
| offsets | A map of index offsets for Parameters that have already been added. |
Implements lsst::gauss2d::fit::ParametricModel.
|
overridevirtual |
Return the vector of Gaussian sub-components controlled by this model.
| channel | The Channel to return Gaussians for. |
Implements lsst::gauss2d::fit::ParametricModel.
|
overridevirtual |
Return the number of Gaussian sub-components controlled by this model.
Implements lsst::gauss2d::fit::ParametricModel.
|
overridevirtual |
Add Parameter refs matching the filter to a vector, in order.
| params | The vector to add to. |
| filter | The filter to apply to this Object's parameters. |
Reimplemented from lsst::gauss2d::fit::EllipticalComponent.
|
overridevirtual |
Same as get_parameters(), but for const refs.
Reimplemented from lsst::gauss2d::fit::EllipticalComponent.
|
inlinestatic |
Construct a vector of default-initialized GaussianComponent instances.
| sizes | Vector of initial values for both sigma_x and sigma_y. |
| fixed | Whether all Parameter members should be fixed initially. |
|
overridevirtual |
Set extra Parameter gradient factors in an existing map.
| channel | The Channel to set factors for. |
| factors | The ExtraParamFactors to set factors for. |
| index | The index to begin setting factors at. |
Implements lsst::gauss2d::fit::ParametricModel.
|
overridevirtual |
Set Parameter gradient factors in an existing map.
| channel | The Channel to set factors for. |
| factors | The GradParamFactors to set factors for. |
| index | The index to begin setting factors at. |
Implements lsst::gauss2d::fit::ParametricModel.