LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+7bcba2e4e8,g2079a07aa2+14824f138e,g212a7c68fe+4b38ad7149,g2305ad1205+906def1e41,g295015adf3+564da5d084,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+cff7e20090,g487adcacf7+50712f9db4,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+d19d1a10d7,g5a732f18d5+66d966b544,g64a986408d+7bcba2e4e8,g858d7b2824+7bcba2e4e8,g8a8a8dda67+a6fc98d2e7,g99cad8db69+808e2eeadf,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+9e3c062e8e,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gb983acf43b+60bb7664b7,gba4ed39666+9664299f35,gbb8dafda3b+6623599aa9,gc07e1c2157+f6e5778202,gc120e1dc64+6e28925a4e,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+cff7e20090,gdaeeff99f8+a38ce5ea23,ge6526c86ff+bcc88f9437,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+7bcba2e4e8,v24.1.5.rc1
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
lsst::afw::image::pixel::BinaryExpr< ExprT1, ExprT2, ImageBinOp, MaskBinOp, VarianceBinOp > Class Template Reference

Class for representing binary operations. More...

#include <Pixel.h>

Public Types

using ImagePixelT = typename exprTraits<ExprT1>::ImagePixelT
 
using MaskPixelT = typename exprTraits<ExprT1>::MaskPixelT
 
using VariancePixelT = typename exprTraits<ExprT1>::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.
 
 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.
 
ImagePixelT image () const
 evaluate the image part of the expression
 
MaskPixelT mask () const
 evaluate the mask part of the expression
 
VariancePixelT variance () const
 evaluate the variance part of the expression
 

Detailed Description

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

Class for representing binary operations.

Definition at line 448 of file Pixel.h.

Member Typedef Documentation

◆ ImagePixelT

template<typename ExprT1 , typename ExprT2 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
using lsst::afw::image::pixel::BinaryExpr< ExprT1, ExprT2, ImageBinOp, MaskBinOp, VarianceBinOp >::ImagePixelT = typename exprTraits<ExprT1>::ImagePixelT

Definition at line 450 of file Pixel.h.

◆ MaskPixelT

template<typename ExprT1 , typename ExprT2 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
using lsst::afw::image::pixel::BinaryExpr< ExprT1, ExprT2, ImageBinOp, MaskBinOp, VarianceBinOp >::MaskPixelT = typename exprTraits<ExprT1>::MaskPixelT

Definition at line 451 of file Pixel.h.

◆ VariancePixelT

template<typename ExprT1 , typename ExprT2 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
using lsst::afw::image::pixel::BinaryExpr< ExprT1, ExprT2, ImageBinOp, MaskBinOp, VarianceBinOp >::VariancePixelT = typename exprTraits<ExprT1>::VariancePixelT

Definition at line 452 of file Pixel.h.

Constructor & Destructor Documentation

◆ BinaryExpr() [1/2]

template<typename ExprT1 , typename ExprT2 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
lsst::afw::image::pixel::BinaryExpr< ExprT1, ExprT2, ImageBinOp, MaskBinOp, VarianceBinOp >::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 454 of file Pixel.h.

456 : _expr1(e1), _expr2(e2), _imageOp(imageOp), _maskOp(maskOp), _varOp(varOp) {}

◆ BinaryExpr() [2/2]

template<typename ExprT1 , typename ExprT2 , typename ImageBinOp , typename MaskBinOp , typename VarianceBinOp >
lsst::afw::image::pixel::BinaryExpr< ExprT1, ExprT2, ImageBinOp, MaskBinOp, VarianceBinOp >::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.

462 : _expr1(e1), _expr2(e2), _imageOp(imageOp), _maskOp(maskOp), _varOp(VarianceBinOp(alpha)) {}

Member Function Documentation

◆ image()

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

evaluate the image part of the expression

Definition at line 464 of file Pixel.h.

464{ return _imageOp(_expr1.image(), _expr2.image()); }

◆ mask()

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

evaluate the mask part of the expression

Definition at line 467 of file Pixel.h.

467{ return _maskOp(_expr1.mask(), _expr2.mask()); }

◆ variance()

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

evaluate the variance part of the expression

Definition at line 470 of file Pixel.h.

470 {
471 return _varOp(_expr1.image(), _expr2.image(), _expr1.variance(), _expr2.variance());
472 }

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