LSSTApplications  18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Friends | List of all members
lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT > Class Template Reference

A single pixel of the same type as a MaskedImage. More...

#include <Pixel.h>

Inheritance diagram for lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >:
lsst::afw::image::detail::MaskedImagePixel_tag

Public Types

typedef _ImagePixelT ImagePixelT
 
typedef _MaskPixelT MaskPixelT
 
typedef _VariancePixelT VariancePixelT
 

Public Member Functions

 SinglePixel (ImagePixelT image, MaskPixelT mask=0, VariancePixelT variance=0)
 
template<typename rhsExpr >
 SinglePixel (rhsExpr const &rhs, typename std::enable_if<!std::is_fundamental< rhsExpr >::value, void *>::type dummy=nullptr)
 
ImagePixelT image () const
 
MaskPixelT mask () const
 
VariancePixelT variance () const
 

Friends

template<typename , typename , typename >
class Pixel
 Typedefs to be used for pixel values. More...
 
template<typename T >
class PixelTypeTraits
 

Detailed Description

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
class lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >

A single pixel of the same type as a MaskedImage.

Definition at line 73 of file Pixel.h.

Member Typedef Documentation

◆ ImagePixelT

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
typedef _ImagePixelT lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::ImagePixelT

Definition at line 80 of file Pixel.h.

◆ MaskPixelT

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
typedef _MaskPixelT lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::MaskPixelT

Definition at line 81 of file Pixel.h.

◆ VariancePixelT

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
typedef _VariancePixelT lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::VariancePixelT

Definition at line 82 of file Pixel.h.

Constructor & Destructor Documentation

◆ SinglePixel() [1/2]

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::SinglePixel ( ImagePixelT  image,
MaskPixelT  mask = 0,
VariancePixelT  variance = 0 
)
inline

Definition at line 84 of file Pixel.h.

85  : _image(image), _mask(mask), _variance(variance) {}
VariancePixelT variance() const
Definition: Pixel.h:96
MaskPixelT mask() const
Definition: Pixel.h:95
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...

◆ SinglePixel() [2/2]

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
template<typename rhsExpr >
lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::SinglePixel ( rhsExpr const &  rhs,
typename std::enable_if<!std::is_fundamental< rhsExpr >::value, void *>::type  dummy = nullptr 
)
inline

Definition at line 88 of file Pixel.h.

92  : _image(rhs.image()), _mask(rhs.mask()), _variance(rhs.variance()) {}

Member Function Documentation

◆ image()

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
ImagePixelT lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::image ( ) const
inline

Definition at line 94 of file Pixel.h.

94 { return _image; }

◆ mask()

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
MaskPixelT lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::mask ( ) const
inline

Definition at line 95 of file Pixel.h.

95 { return _mask; }

◆ variance()

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
VariancePixelT lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::variance ( ) const
inline

Definition at line 96 of file Pixel.h.

96 { return _variance; }

Friends And Related Function Documentation

◆ Pixel

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
template<typename , typename , typename >
friend class Pixel
friend

Typedefs to be used for pixel values.

Definition at line 76 of file Pixel.h.

◆ PixelTypeTraits

template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
template<typename T >
friend class PixelTypeTraits
friend

Definition at line 78 of file Pixel.h.


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