LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Private Member Functions | Private Attributes | 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 (double const image, int mask=0, double const variance=0)
 
 SinglePixel (int const image, int mask=0, double const variance=0)
 
template<typename rhsExpr >
 SinglePixel (rhsExpr const &rhs)
 
ImagePixelT image () const
 
MaskPixelT mask () const
 
VariancePixelT variance () const
 

Private Member Functions

 SinglePixel ()
 

Private Attributes

ImagePixelT _image
 
MaskPixelT _mask
 
VariancePixelT _variance
 

Friends

template<typename , typename , typename >
class Pixel
 
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 63 of file Pixel.h.

Member Typedef Documentation

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

Definition at line 68 of file Pixel.h.

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

Definition at line 69 of file Pixel.h.

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

Definition at line 70 of file Pixel.h.

Constructor & Destructor Documentation

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

Definition at line 72 of file Pixel.h.

72  :
VariancePixelT variance() const
Definition: Pixel.h:82
MaskPixelT mask() const
Definition: Pixel.h:81
ImagePixelT image() const
Definition: Pixel.h:80
template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::SinglePixel ( int const  image,
int  mask = 0,
double const  variance = 0 
)
inline

Definition at line 74 of file Pixel.h.

74  :
VariancePixelT variance() const
Definition: Pixel.h:82
MaskPixelT mask() const
Definition: Pixel.h:81
ImagePixelT image() const
Definition: Pixel.h:80
template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
template<typename rhsExpr >
lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::SinglePixel ( rhsExpr const &  rhs)
inline

Definition at line 78 of file Pixel.h.

78 : _image(rhs.image()), _mask(rhs.mask()), _variance(rhs.variance()) {}
template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::SinglePixel ( )
inlineprivate

Default Ctor

Can be called by PixelTypeTraits<SinglePixel>::padValue()

Definition at line 88 of file Pixel.h.

88  :
89  _image(std::numeric_limits<_ImagePixelT>::has_quiet_NaN ?
90  std::numeric_limits<_ImagePixelT>::quiet_NaN() : 0),
91  _mask(0),
92  _variance(std::numeric_limits<_VariancePixelT>::has_quiet_NaN ?
93  std::numeric_limits<_VariancePixelT>::quiet_NaN() : 0)
94  {}

Member Function Documentation

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

Definition at line 80 of file Pixel.h.

80 { return _image; }
template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
MaskPixelT lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::mask ( ) const
inline

Definition at line 81 of file Pixel.h.

81 { return _mask; }
template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
VariancePixelT lsst::afw::image::pixel::SinglePixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >::variance ( ) const
inline

Definition at line 82 of file Pixel.h.

82 { return _variance; }

Friends And Related Function Documentation

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

Definition at line 65 of file Pixel.h.

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

Definition at line 66 of file Pixel.h.

Member Data Documentation

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

Definition at line 96 of file Pixel.h.

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

Definition at line 97 of file Pixel.h.

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

Definition at line 98 of file Pixel.h.


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