LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
home
lsstsw
stack
Linux64
ip_diffim
11.0.rc2+12
include
lsst
ip
diffim
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 "boost/shared_ptr.hpp"
16
#include "
lsst/afw/math.h
"
17
#include "
lsst/afw/image.h
"
18
#include "
lsst/pex/policy/Policy.h
"
19
20
namespace
lsst {
21
namespace
ip {
22
namespace
diffim {
23
namespace
detail {
24
25
template
<
typename
PixelT>
26
class
KernelSumVisitor
:
public
lsst::afw::math::CandidateVisitor
{
27
public
:
28
typedef
boost::shared_ptr<KernelSumVisitor<PixelT> >
Ptr
;
29
30
enum
Mode
{
AGGREGATE
= 0,
REJECT
= 1};
31
32
KernelSumVisitor
(
lsst::pex::policy::Policy
const
& policy);
33
virtual
~KernelSumVisitor
() {};
34
35
void
setMode
(
Mode
mode) {
_mode
= mode;}
36
int
getNRejected
() {
return
_nRejected
;}
37
double
getkSumMean
() {
return
_kSumMean
;}
38
double
getkSumStd
() {
return
_kSumStd
;}
39
double
getdkSumMax
() {
return
_dkSumMax
;}
40
int
getkSumNpts
() {
return
_kSumNpts
;}
41
42
void
resetKernelSum
();
43
void
processCandidate
(
lsst::afw::math::SpatialCellCandidate
*candidate);
44
void
processKsumDistribution
();
45
46
private
:
47
Mode
_mode
;
48
std::vector<double>
_kSums
;
49
double
_kSumMean
;
50
double
_kSumStd
;
51
double
_dkSumMax
;
52
int
_kSumNpts
;
53
int
_nRejected
;
54
lsst::pex::policy::Policy
_policy
;
55
};
56
57
template
<
typename
PixelT>
58
boost::shared_ptr<KernelSumVisitor<PixelT> >
59
makeKernelSumVisitor
(
lsst::pex::policy::Policy
const
& policy) {
60
return
typename
KernelSumVisitor<PixelT>::Ptr
(
new
KernelSumVisitor<PixelT>
(policy));
61
}
62
63
}}}}
// end of namespace lsst::ip::diffim::detail
64
65
#endif
math.h
An include file to include the public header files for lsst::afw::math.
lsst::ip::diffim::detail::KernelSumVisitor::_kSumNpts
int _kSumNpts
Number of points used in the statistics.
Definition:
KernelSumVisitor.h:52
lsst::ip::diffim::detail::KernelSumVisitor::_mode
Mode _mode
Processing mode; AGGREGATE or REJECT.
Definition:
KernelSumVisitor.h:47
lsst::ip::diffim::detail::KernelSumVisitor::setMode
void setMode(Mode mode)
Definition:
KernelSumVisitor.h:35
lsst::pex.policy::Policy
a container for holding hierarchical configuration data in memory.
Definition:
Policy.h:169
lsst::ip::diffim::detail::KernelSumVisitor::~KernelSumVisitor
virtual ~KernelSumVisitor()
Definition:
KernelSumVisitor.h:33
lsst::ip::diffim::detail::KernelSumVisitor::getNRejected
int getNRejected()
Definition:
KernelSumVisitor.h:36
lsst::ip::diffim::detail::KernelSumVisitor::AGGREGATE
Definition:
KernelSumVisitor.h:30
lsst::ip::diffim::detail::KernelSumVisitor::resetKernelSum
void resetKernelSum()
Definition:
KernelSumVisitor.cc:81
lsst::ip::diffim::detail::KernelSumVisitor::_kSumMean
double _kSumMean
Clipped mean of the kernel sums.
Definition:
KernelSumVisitor.h:49
lsst::ip::diffim::detail::KernelSumVisitor::getkSumStd
double getkSumStd()
Definition:
KernelSumVisitor.h:38
lsst::ip::diffim::detail::KernelSumVisitor::Mode
Mode
Definition:
KernelSumVisitor.h:30
image.h
An include file to include the header files for lsst::afw::image.
lsst::ip::diffim::detail::KernelSumVisitor
A class to accumulate kernel sums across SpatialCells.
Definition:
KernelSumVisitor.h:26
lsst::ip::diffim::detail::KernelSumVisitor::processKsumDistribution
void processKsumDistribution()
Definition:
KernelSumVisitor.cc:128
lsst::ip::diffim::detail::makeKernelSumVisitor
boost::shared_ptr< KernelSumVisitor< PixelT > > makeKernelSumVisitor(lsst::pex::policy::Policy const &policy)
Definition:
KernelSumVisitor.h:59
lsst::ip::diffim::detail::KernelSumVisitor::getdkSumMax
double getdkSumMax()
Definition:
KernelSumVisitor.h:39
lsst::ip::diffim::detail::KernelSumVisitor::processCandidate
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
Definition:
KernelSumVisitor.cc:91
lsst::ip::diffim::detail::KernelSumVisitor::_dkSumMax
double _dkSumMax
Maximum acceptable deviation from mean sum.
Definition:
KernelSumVisitor.h:51
lsst::ip::diffim::detail::KernelSumVisitor::getkSumMean
double getkSumMean()
Definition:
KernelSumVisitor.h:37
lsst::ip::diffim::detail::KernelSumVisitor::_kSumStd
double _kSumStd
Clipped standard deviation of kernel sums.
Definition:
KernelSumVisitor.h:50
lsst::ip::diffim::detail::KernelSumVisitor::getkSumNpts
int getkSumNpts()
Definition:
KernelSumVisitor.h:40
Policy.h
lsst::ip::diffim::detail::KernelSumVisitor::_kSums
std::vector< double > _kSums
List of all candidate kernel sums.
Definition:
KernelSumVisitor.h:48
lsst::ip::diffim::detail::KernelSumVisitor::Ptr
boost::shared_ptr< KernelSumVisitor< PixelT > > Ptr
Definition:
KernelSumVisitor.h:28
lsst::ip::diffim::detail::KernelSumVisitor::KernelSumVisitor
KernelSumVisitor(lsst::pex::policy::Policy const &policy)
Definition:
KernelSumVisitor.cc:66
lsst.afw.math::SpatialCellCandidate
Definition:
SpatialCell.h:74
lsst.afw.math::CandidateVisitor
Definition:
SpatialCell.h:61
lsst::ip::diffim::detail::KernelSumVisitor::_nRejected
int _nRejected
Number of candidates rejected during processCandidate()
Definition:
KernelSumVisitor.h:53
lsst::ip::diffim::detail::KernelSumVisitor::REJECT
Definition:
KernelSumVisitor.h:30
lsst::ip::diffim::detail::KernelSumVisitor::_policy
lsst::pex::policy::Policy _policy
Policy controlling behavior.
Definition:
KernelSumVisitor.h:54
Generated on Wed Sep 16 2015 13:35:29 for LSSTApplications by
1.8.5