Template Class Pixel¶
Defined in File Pixel.h
Inheritance Relationships¶
Base Type¶
public lsst::afw::image::detail::MaskedImagePixel_tag
(Struct MaskedImagePixel_tag)
Class Documentation¶
-
template<typename
_ImagePixelT
, typename_MaskPixelT
, typename_VariancePixelT
= double>
classPixel
: public lsst::afw::image::detail::MaskedImagePixel_tag¶ A pixel of a MaskedImage.
Public Types
-
typedef _ImagePixelT
ImagePixelT
¶
-
typedef _MaskPixelT
MaskPixelT
¶
-
typedef _VariancePixelT
VariancePixelT
¶
Public Functions
-
Pixel
(ImagePixelT const &image, MaskPixelT const &mask = 0x0, VariancePixelT const &variance = 0)¶ Construct a Pixel from references to its image/mask/variance components.
-
Pixel
(SinglePixel<ImagePixelT, MaskPixelT, VariancePixelT> &rhs)¶
-
~Pixel
()¶
-
Pixel
operator=
(Pixel const &rhs)¶
-
template<typename
rhsExpr
>
Pixeloperator=
(rhsExpr const &rhs)¶ Assign a Pixel by evaluating an expression
We use C++ template expressions to build a compile-time parse tree to evaluate Pixel expressions; this is where we evaluate the rhs and set the Pixel’s values
-
Pixel
operator=
(Pixel &&rhs)¶
-
Pixel
operator=
(double const &rhs_image)¶ set the image part of a Pixel to rhs_image (the mask and variance are set to 0)
-
Pixel
operator=
(int const &rhs_image)¶ set the image part of a Pixel to rhs_image (the mask and variance are set to 0)
-
ImagePixelT
image
() const¶ Return the image part of a Pixel.
-
MaskPixelT
mask
() const¶ Return the mask part of a Pixel.
-
VariancePixelT
variance
() const¶ Return the variance part of a Pixel.
-
std::size_t
hash_value
() const¶ Return a hash of this object.
Friends
-
template<typename
T1
>
booloperator==
(Pixel const &lhs, T1 const &rhs)¶ Return true iff two pixels are equal (in all three of image, mask, and variance)
-
template<typename
T1
>
booloperator!=
(Pixel const &lhs, T1 const &rhs)¶ Return true iff two pixels are unequal (in at least one of image, mask, and variance)
-
template<typename
ExprT
>
Pixeloperator+=
(Pixel const &e1, ExprT const &e2)¶ Evaluate e1 += e2, and return e1.
-
template<typename
ExprT
>
Pixeloperator-=
(Pixel const &e1, ExprT const &e2)¶ Evaluate e1 -= e2, and return e1.
-
typedef _ImagePixelT