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< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp > Class Template Reference

#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, double 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, double 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
 
double _expr2
 
ImageBinOp _imageOp
 
MaskBinOp _maskOp
 
VarianceBinOp _varOp
 

Detailed Description

template<typename ExprT1, typename ImageBinOp, typename MaskBinOp, typename VarianceBinOp>
class lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >

Partial specialization of BinaryExpr when ExprT2 is a double (i.e no mask/variance part)

Todo:
Could use a traits class to handle all scalar types

Definition at line 489 of file Pixel.h.

Member Typedef Documentation

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
typedef exprTraits<ExprT1>::ImagePixelT lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::ImagePixelT

Definition at line 491 of file Pixel.h.

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
typedef exprTraits<ExprT1>::MaskPixelT lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::MaskPixelT

Definition at line 492 of file Pixel.h.

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
typedef exprTraits<ExprT1>::VariancePixelT lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::VariancePixelT

Definition at line 493 of file Pixel.h.

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
ImagePixelT lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::image ( ) const
inline
template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
MaskPixelT lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::mask ( ) const
inline

evaluate the mask part of the expression

Definition at line 509 of file Pixel.h.

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
VariancePixelT lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::variance ( ) const
inline

Member Data Documentation

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

Definition at line 518 of file Pixel.h.

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
double lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::_expr2
private

Definition at line 519 of file Pixel.h.

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
ImageBinOp lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::_imageOp
private

Definition at line 520 of file Pixel.h.

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
MaskBinOp lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::_maskOp
private

Definition at line 521 of file Pixel.h.

template<typename ExprT1 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
VarianceBinOp lsst::afw::image::pixel::BinaryExpr< ExprT1, double, ImageBinOp, MaskBinOp, VarianceBinOp >::_varOp
private

Definition at line 522 of file Pixel.h.


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