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 Attributes | List of all members
lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename > Class Template Reference

Class for representing binary operations. More...

#include <Pixel.h>

Public Types

typedef exprTraits< ExprT1 >
::ImagePixelT 
ImagePixelT
 
typedef exprTraits< ExprT1 >
::MaskPixelT 
MaskPixelT
 
typedef exprTraits< ExprT1 >
::VariancePixelT 
VariancePixelT
 

Public Member Functions

 BinaryExpr (ExprT1 e1, ExprT2 e2, ImageBinOp imageOp=ImageBinOp(), MaskBinOp maskOp=MaskBinOp(), VarianceBinOp varOp=VarianceBinOp())
 A binary operation, with three functors to represent the image/mask/variance operations. More...
 
 BinaryExpr (ExprT1 e1, ExprT2 e2, double const alpha, ImageBinOp imageOp=ImageBinOp(), MaskBinOp maskOp=MaskBinOp(), VarianceBinOp=VarianceBinOp())
 A binary operation, with three functors to represent the image/mask/variance operations and an extra double argument. More...
 
ImagePixelT image () const
 evaluate the image part of the expression More...
 
MaskPixelT mask () const
 evaluate the mask part of the expression More...
 
VariancePixelT variance () const
 evaluate the variance part of the expression More...
 

Private Attributes

exprTraits< ExprT1 >::expr_type _expr1
 
exprTraits< ExprT2 >::expr_type _expr2
 
ImageBinOp _imageOp
 
MaskBinOp _maskOp
 
VarianceBinOp _varOp
 

Detailed Description

template<typename, typename, typename, typename, typename>
class lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >

Class for representing binary operations.

Definition at line 32 of file Pixel.h.

Member Typedef Documentation

template<typename , typename , typename , typename , typename >
typedef exprTraits<ExprT1>::ImagePixelT lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::ImagePixelT

Definition at line 451 of file Pixel.h.

template<typename , typename , typename , typename , typename >
typedef exprTraits<ExprT1>::MaskPixelT lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::MaskPixelT

Definition at line 452 of file Pixel.h.

template<typename , typename , typename , typename , typename >
typedef exprTraits<ExprT1>::VariancePixelT lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::VariancePixelT

Definition at line 453 of file Pixel.h.

Constructor & Destructor Documentation

template<typename , typename , typename , typename , typename >
lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::BinaryExpr ( ExprT1  e1,
ExprT2  e2,
ImageBinOp  imageOp = ImageBinOp(),
MaskBinOp  maskOp = MaskBinOp(),
VarianceBinOp  varOp = VarianceBinOp() 
)
inline

A binary operation, with three functors to represent the image/mask/variance operations.

Definition at line 455 of file Pixel.h.

456  :
457  _expr1(e1), _expr2(e2), _imageOp(imageOp), _maskOp(maskOp), _varOp(varOp) {}
exprTraits< ExprT1 >::expr_type _expr1
Definition: Pixel.h:478
exprTraits< ExprT2 >::expr_type _expr2
Definition: Pixel.h:479
template<typename , typename , typename , typename , typename >
lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::BinaryExpr ( ExprT1  e1,
ExprT2  e2,
double const  alpha,
ImageBinOp  imageOp = ImageBinOp(),
MaskBinOp  maskOp = MaskBinOp(),
VarianceBinOp  = VarianceBinOp() 
)
inline

A binary operation, with three functors to represent the image/mask/variance operations and an extra double argument.

Definition at line 460 of file Pixel.h.

461  :
462  _expr1(e1), _expr2(e2), _imageOp(imageOp), _maskOp(maskOp), _varOp(VarianceBinOp(alpha)) {}
Matrix alpha
exprTraits< ExprT1 >::expr_type _expr1
Definition: Pixel.h:478
exprTraits< ExprT2 >::expr_type _expr2
Definition: Pixel.h:479

Member Function Documentation

template<typename , typename , typename , typename , typename >
ImagePixelT lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::image ( ) const
inline

evaluate the image part of the expression

Definition at line 464 of file Pixel.h.

464  {
465  return _imageOp(_expr1.image(), _expr2.image());
466  }
exprTraits< ExprT1 >::expr_type _expr1
Definition: Pixel.h:478
exprTraits< ExprT2 >::expr_type _expr2
Definition: Pixel.h:479
template<typename , typename , typename , typename , typename >
MaskPixelT lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::mask ( ) const
inline

evaluate the mask part of the expression

Definition at line 469 of file Pixel.h.

469  {
470  return _maskOp(_expr1.mask(), _expr2.mask());
471  }
exprTraits< ExprT1 >::expr_type _expr1
Definition: Pixel.h:478
exprTraits< ExprT2 >::expr_type _expr2
Definition: Pixel.h:479
template<typename , typename , typename , typename , typename >
VariancePixelT lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::variance ( ) const
inline

evaluate the variance part of the expression

Definition at line 474 of file Pixel.h.

474  {
475  return _varOp(_expr1.image(), _expr2.image(), _expr1.variance(), _expr2.variance());
476  }
exprTraits< ExprT1 >::expr_type _expr1
Definition: Pixel.h:478
exprTraits< ExprT2 >::expr_type _expr2
Definition: Pixel.h:479

Member Data Documentation

template<typename , typename , typename , typename , typename >
exprTraits<ExprT1>::expr_type lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::_expr1
private

Definition at line 478 of file Pixel.h.

template<typename , typename , typename , typename , typename >
exprTraits<ExprT2>::expr_type lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::_expr2
private

Definition at line 479 of file Pixel.h.

template<typename , typename , typename , typename , typename >
ImageBinOp lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::_imageOp
private

Definition at line 480 of file Pixel.h.

template<typename , typename , typename , typename , typename >
MaskBinOp lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::_maskOp
private

Definition at line 481 of file Pixel.h.

template<typename , typename , typename , typename , typename >
VarianceBinOp lsst::afw::image::pixel::BinaryExpr< typename, typename, typename, typename, typename >::_varOp
private

Definition at line 482 of file Pixel.h.


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