|
template<typename T1 > |
bool | operator== (Pixel const &lhs, T1 const &rhs) |
| Return true iff two pixels are equal (in all three of image, mask, and variance) More...
|
|
template<typename T1 > |
bool | operator!= (Pixel const &lhs, T1 const &rhs) |
| Return true iff two pixels are unequal (in at least one of image, mask, and variance) More...
|
|
template<typename ExprT > |
Pixel | operator+= (Pixel const &e1, ExprT const &e2) |
| Evaluate e1 += e2, and return e1. More...
|
|
template<typename ExprT > |
Pixel | operator-= (Pixel const &e1, ExprT const &e2) |
| Evaluate e1 -= e2, and return e1. More...
|
|
template<typename ExprT > |
Pixel | operator*= (Pixel const &e1, ExprT const &e2) |
| Evaluate e1 *= e2, and return e1. More...
|
|
template<typename ExprT > |
Pixel | operator/= (Pixel const &e1, ExprT const &e2) |
| Evaluate e1 /= e2, and return e1. More...
|
|
template<typename _ImagePixelT, typename _MaskPixelT, typename _VariancePixelT = double>
class lsst::afw::image::pixel::Pixel< _ImagePixelT, _MaskPixelT, _VariancePixelT >
A pixel of a MaskedImage.
Definition at line 148 of file Pixel.h.
template<typename _ImagePixelT , typename _MaskPixelT , typename _VariancePixelT = double>
template<typename rhsExpr >
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
Definition at line 189 of file Pixel.h.
190 _variance = rhs.variance();
191 _image = rhs.image();
template<typename _ImagePixelT , typename _MaskPixelT , typename _VariancePixelT = double>
template<typename T1 >
bool operator!= |
( |
Pixel< _ImagePixelT, _MaskPixelT, _VariancePixelT > const & |
lhs, |
|
|
T1 const & |
rhs |
|
) |
| |
|
friend |
Return true iff two pixels are unequal (in at least one of image, mask, and variance)
Definition at line 234 of file Pixel.h.
235 return !(lhs == rhs);
template<typename _ImagePixelT , typename _MaskPixelT , typename _VariancePixelT = double>
template<typename ExprT >
Pixel operator*= |
( |
Pixel< _ImagePixelT, _MaskPixelT, _VariancePixelT > const & |
e1, |
|
|
ExprT const & |
e2 |
|
) |
| |
|
friend |
Evaluate e1 *= e2, and return e1.
Definition at line 269 of file Pixel.h.
271 tmp = BinaryExpr<Pixel, ExprT, std::multiplies<ImagePixelT>, bitwise_or<MaskPixelT>,
272 variance_multiplies<VariancePixelT> >(tmp, e2);
Pixel(ImagePixelT const &image, MaskPixelT const &mask=0x0, VariancePixelT const &variance=0)
Construct a Pixel from references to its image/mask/variance components.
template<typename _ImagePixelT , typename _MaskPixelT , typename _VariancePixelT = double>
template<typename ExprT >
Pixel operator+= |
( |
Pixel< _ImagePixelT, _MaskPixelT, _VariancePixelT > const & |
e1, |
|
|
ExprT const & |
e2 |
|
) |
| |
|
friend |
Evaluate e1 += e2, and return e1.
Definition at line 251 of file Pixel.h.
253 tmp = BinaryExpr<Pixel, ExprT, std::plus<ImagePixelT>, bitwise_or<MaskPixelT>,
254 variance_plus<VariancePixelT> >(tmp, e2);
Pixel(ImagePixelT const &image, MaskPixelT const &mask=0x0, VariancePixelT const &variance=0)
Construct a Pixel from references to its image/mask/variance components.
template<typename _ImagePixelT , typename _MaskPixelT , typename _VariancePixelT = double>
template<typename ExprT >
Pixel operator-= |
( |
Pixel< _ImagePixelT, _MaskPixelT, _VariancePixelT > const & |
e1, |
|
|
ExprT const & |
e2 |
|
) |
| |
|
friend |
Evaluate e1 -= e2, and return e1.
Definition at line 260 of file Pixel.h.
262 tmp = BinaryExpr<Pixel, ExprT, std::minus<ImagePixelT>, bitwise_or<MaskPixelT>,
263 variance_plus<VariancePixelT> >(tmp, e2);
Pixel(ImagePixelT const &image, MaskPixelT const &mask=0x0, VariancePixelT const &variance=0)
Construct a Pixel from references to its image/mask/variance components.
template<typename _ImagePixelT , typename _MaskPixelT , typename _VariancePixelT = double>
template<typename ExprT >
Pixel operator/= |
( |
Pixel< _ImagePixelT, _MaskPixelT, _VariancePixelT > const & |
e1, |
|
|
ExprT const & |
e2 |
|
) |
| |
|
friend |
Evaluate e1 /= e2, and return e1.
Definition at line 278 of file Pixel.h.
280 tmp = BinaryExpr<Pixel, ExprT, std::divides<ImagePixelT>, bitwise_or<MaskPixelT>,
281 variance_divides<VariancePixelT> >(tmp, e2);
Pixel(ImagePixelT const &image, MaskPixelT const &mask=0x0, VariancePixelT const &variance=0)
Construct a Pixel from references to its image/mask/variance components.
template<typename _ImagePixelT , typename _MaskPixelT , typename _VariancePixelT = double>
template<typename T1 >
bool operator== |
( |
Pixel< _ImagePixelT, _MaskPixelT, _VariancePixelT > const & |
lhs, |
|
|
T1 const & |
rhs |
|
) |
| |
|
friend |
Return true iff two pixels are equal (in all three of image, mask, and variance)
Definition at line 228 of file Pixel.h.
229 return lhs.image() == rhs.image() && lhs.mask() == rhs.mask() && lhs.variance() == rhs.variance();