lsst.ip.diffim  20.0.0-1-g596936a+26
KernelSumVisitor.h
Go to the documentation of this file.
1 // -*- lsst-c++ -*-
12 #ifndef LSST_IP_DIFFIM_KERNELSUMVISITOR_H
13 #define LSST_IP_DIFFIM_KERNELSUMVISITOR_H
14 
15 #include <memory>
16 
17 #include "lsst/afw/math.h"
18 #include "lsst/afw/image.h"
20 
21 namespace lsst {
22 namespace ip {
23 namespace diffim {
24 namespace detail {
25 
26  template<typename PixelT>
28  public:
30 
31  enum Mode {AGGREGATE = 0, REJECT = 1};
32 
34  virtual ~KernelSumVisitor() {};
35 
36  void setMode(Mode mode) {_mode = mode;}
37  int getNRejected() {return _nRejected;}
38  double getkSumMean() {return _kSumMean;}
39  double getkSumStd() {return _kSumStd;}
40  double getdkSumMax() {return _dkSumMax;}
41  int getkSumNpts() {return _kSumNpts;}
42 
43  void resetKernelSum();
46 
47  private:
48  Mode _mode;
49  std::vector<double> _kSums;
50  double _kSumMean;
51  double _kSumStd;
52  double _dkSumMax;
53  int _kSumNpts;
54  int _nRejected;
56  };
57 
58  template<typename PixelT>
62  }
63 
64 }}}} // end of namespace lsst::ip::diffim::detail
65 
66 #endif
lsst::ip::diffim::detail::KernelSumVisitor::Mode
Mode
Definition: KernelSumVisitor.h:31
lsst::ip::diffim::detail::KernelSumVisitor::KernelSumVisitor
KernelSumVisitor(lsst::daf::base::PropertySet const &ps)
Definition: KernelSumVisitor.cc:65
lsst::afw::math::SpatialCellCandidate
std::shared_ptr
STL class.
lsst::ip::diffim::detail::KernelSumVisitor::getNRejected
int getNRejected()
Definition: KernelSumVisitor.h:37
std::vector< double >
lsst::afw::math::CandidateVisitor
lsst::ip::diffim::detail::KernelSumVisitor::getdkSumMax
double getdkSumMax()
Definition: KernelSumVisitor.h:40
lsst::ip::diffim::detail::KernelSumVisitor::processCandidate
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
Definition: KernelSumVisitor.cc:90
lsst::ip::diffim::detail::makeKernelSumVisitor
std::shared_ptr< KernelSumVisitor< PixelT > > makeKernelSumVisitor(lsst::daf::base::PropertySet const &ps)
Definition: KernelSumVisitor.h:60
lsst::ip::diffim::detail::KernelSumVisitor::AGGREGATE
@ AGGREGATE
Definition: KernelSumVisitor.h:31
image.h
lsst::ip::diffim::detail::KernelSumVisitor::processKsumDistribution
void processKsumDistribution()
Definition: KernelSumVisitor.cc:127
lsst::ip::diffim::detail::KernelSumVisitor::setMode
void setMode(Mode mode)
Definition: KernelSumVisitor.h:36
math.h
PropertySet.h
lsst::ip::diffim::detail::KernelSumVisitor::getkSumStd
double getkSumStd()
Definition: KernelSumVisitor.h:39
lsst::ip::diffim::detail::KernelSumVisitor::Ptr
std::shared_ptr< KernelSumVisitor< PixelT > > Ptr
Definition: KernelSumVisitor.h:29
lsst
lsst::ip::diffim::detail::KernelSumVisitor::getkSumMean
double getkSumMean()
Definition: KernelSumVisitor.h:38
lsst::ip::diffim::detail::KernelSumVisitor
A class to accumulate kernel sums across SpatialCells.
Definition: KernelSumVisitor.h:27
lsst::daf::base::PropertySet
lsst::ip::diffim::detail::KernelSumVisitor::REJECT
@ REJECT
Definition: KernelSumVisitor.h:31
lsst::ip::diffim::detail::KernelSumVisitor::getkSumNpts
int getkSumNpts()
Definition: KernelSumVisitor.h:41
lsst::ip::diffim::detail::KernelSumVisitor::resetKernelSum
void resetKernelSum()
Definition: KernelSumVisitor.cc:80
lsst::ip::diffim::detail::KernelSumVisitor::~KernelSumVisitor
virtual ~KernelSumVisitor()
Definition: KernelSumVisitor.h:34