LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Public Member Functions | Private Attributes | List of all members
lsst::meas::algorithms::FootprintFlux< MaskedImageT > Class Template Reference
Inheritance diagram for lsst::meas::algorithms::FootprintFlux< MaskedImageT >:
lsst::afw::detection::FootprintFunctor< MaskedImageT > lsst::afw::detection::FootprintFunctor< MaskedImageT >

Public Member Functions

 FootprintFlux (MaskedImageT const &mimage)
 
void reset ()
 Reset everything for a new Footprint. More...
 
void reset (afwDet::Footprint const &)
 
void operator() (typename MaskedImageT::xy_locator loc, int, int)
 method called for each pixel by apply() More...
 
double getSum () const
 Return the Footprint's flux. More...
 
double getSumVar () const
 Return the variance of the Footprint's flux. More...
 
- Public Member Functions inherited from lsst::afw::detection::FootprintFunctor< MaskedImageT >
 FootprintFunctor (MaskedImageTconst &image)
 
virtual ~FootprintFunctor ()=0
 
void apply (Footprint const &foot, int const margin=0)
 Apply operator() to each pixel in the Footprint. More...
 
MaskedImageTconst & getImage () const
 Return the image. More...
 

Private Attributes

double _sum
 
double _sumVar
 

Detailed Description

template<typename MaskedImageT>
class lsst::meas::algorithms::FootprintFlux< MaskedImageT >

Definition at line 72 of file ApertureFlux.cc.

Constructor & Destructor Documentation

template<typename MaskedImageT>
lsst::meas::algorithms::FootprintFlux< MaskedImageT >::FootprintFlux ( MaskedImageT const &  mimage)
inlineexplicit
Parameters
mimageThe image the source lives in

Definition at line 74 of file ApertureFlux.cc.

Member Function Documentation

template<typename MaskedImageT>
double lsst::meas::algorithms::FootprintFlux< MaskedImageT >::getSum ( ) const
inline

Return the Footprint's flux.

Definition at line 96 of file ApertureFlux.cc.

template<typename MaskedImageT>
double lsst::meas::algorithms::FootprintFlux< MaskedImageT >::getSumVar ( ) const
inline

Return the variance of the Footprint's flux.

Definition at line 99 of file ApertureFlux.cc.

template<typename MaskedImageT>
void lsst::meas::algorithms::FootprintFlux< MaskedImageT >::operator() ( typename MaskedImageT::xy_locator  loc,
int  ,
int   
)
inlinevirtual

method called for each pixel by apply()

Parameters
loclocator pointing at the pixel

Implements lsst::afw::detection::FootprintFunctor< MaskedImageT >.

Definition at line 85 of file ApertureFlux.cc.

88  {
89  typename MaskedImageT::Image::Pixel ival = loc.image(0, 0);
90  typename MaskedImageT::Variance::Pixel vval = loc.variance(0, 0);
91  _sum += ival;
92  _sumVar += vval;
93  }
template<typename MaskedImageT>
void lsst::meas::algorithms::FootprintFlux< MaskedImageT >::reset ( )
inlinevirtual

Reset everything for a new Footprint.

Reimplemented from lsst::afw::detection::FootprintFunctor< MaskedImageT >.

Definition at line 79 of file ApertureFlux.cc.

template<typename MaskedImageT>
void lsst::meas::algorithms::FootprintFlux< MaskedImageT >::reset ( afwDet::Footprint const &  )
inlinevirtual

Reimplemented from lsst::afw::detection::FootprintFunctor< MaskedImageT >.

Definition at line 82 of file ApertureFlux.cc.

82 {}

Member Data Documentation

template<typename MaskedImageT>
double lsst::meas::algorithms::FootprintFlux< MaskedImageT >::_sum
private

Definition at line 102 of file ApertureFlux.cc.

template<typename MaskedImageT>
double lsst::meas::algorithms::FootprintFlux< MaskedImageT >::_sumVar
private

Definition at line 103 of file ApertureFlux.cc.


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