lsst.gauss2d.fit g199a45376c+3b7b3fd841
 
Loading...
Searching...
No Matches
lsst::gauss2d::fit::Observation< T, I, M > Class Template Reference

An observed single-channel image with an associated variance and mask. More...

#include <observation.h>

Inheritance diagram for lsst::gauss2d::fit::Observation< T, I, M >:
lsst::gauss2d::fit::Parametric

Public Types

using Image = lsst::gauss2d::Image<T, I>
 
using Mask = lsst::gauss2d::Image<bool, M>
 

Public Member Functions

 Observation (std::shared_ptr< Image > image, std::shared_ptr< Image > sigma_inv, std::shared_ptr< Mask > mask_inv, const Channel &channel=Channel::NONE())
 
const Channelget_channel () const
 Get this->_channel.
 
std::shared_ptr< const Image > get_image_ptr_const () const
 Get this->_image.
 
std::shared_ptr< const Image > get_sigma_inverse_ptr_const () const
 Get this->_sigma_inv.
 
size_t get_n_cols () const
 Get the number of columns in this->_image.
 
size_t get_n_rows () const
 Get the number of rows in this->_image.
 
Image & get_image () const
 Get a ref to this->_image.
 
Mask & get_mask_inverse () const
 Get a ref to this->_mask.
 
Image & get_sigma_inverse () const
 Get a ref to this->sigma_inv.
 
ParamRefs & get_parameters (ParamRefs &params, ParamFilter *filter=nullptr) const override
 
ParamCRefs & get_parameters_const (ParamCRefs &params, ParamFilter *filter=nullptr) const override
 Same as get_parameters(), but for const refs.
 
std::string repr (bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override
 
std::string str () const override
 
bool operator== (const Observation &other) const
 
- 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.
 

Detailed Description

template<typename T, typename I, typename M>
class lsst::gauss2d::fit::Observation< T, I, M >

An observed single-channel image with an associated variance and mask.

An Observation is an Image in a single Channel with a corresponding variance and mask. The variance is provided as inverse sigma to facilitate Model evaluation. Observation Image instances may represent a single physical exposure or more generic data, such as processed data like coadded/stacked images.

Note
The Mask convention is that of an "inverse" mask. Pixels with positive Mask valuese used, while values <= 0 are ignored.
Template Parameters
TThe type of the Image (usually float or double).
ImageThe class of image used in Data.
IndicesThe class of index map used in Data.
MaskThe class of mask f.

Constructor & Destructor Documentation

◆ Observation()

template<typename T, typename I, typename M>
lsst::gauss2d::fit::Observation< T, I, M >::Observation ( std::shared_ptr< Image > image,
std::shared_ptr< Image > sigma_inv,
std::shared_ptr< Mask > mask_inv,
const Channel & channel = Channel::NONE() )
inlineexplicit

Construct an Observation instance.

Parameters
imageThe Image to assign to _image.
sigma_invThe Image to assign to _sigma_inv. Must have identical dimensions as image.
mask_invThe mask Image to assign to _mask.
channelThe channel of every Observation.

Member Function Documentation

◆ get_parameters()

template<typename T, typename I, typename M>
ParamRefs & lsst::gauss2d::fit::Observation< T, I, M >::get_parameters ( ParamRefs & params,
ParamFilter * filter = nullptr ) const
inlineoverridevirtual

Add Parameter refs matching the filter to a vector, in order.

Parameters
paramsThe vector to add to.
filterThe filter to apply to this Object's parameters.
Returns
A ref to params (for method chaining)

Implements lsst::gauss2d::fit::Parametric.

◆ get_parameters_const()

template<typename T, typename I, typename M>
ParamCRefs & lsst::gauss2d::fit::Observation< T, I, M >::get_parameters_const ( ParamCRefs & params,
ParamFilter * filter = nullptr ) const
inlineoverridevirtual

Same as get_parameters(), but for const refs.

Implements lsst::gauss2d::fit::Parametric.


The documentation for this class was generated from the following file: