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
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
home
lsstsw
stack
Linux64
ip_diffim
11.0+1
include
lsst
ip
diffim
AssessSpatialKernelVisitor.h
Go to the documentation of this file.
1
// -*- lsst-c++ -*-
12
#ifndef LSST_IP_DIFFIM_ASSESSSPATIALKERNELVISITOR_H
13
#define LSST_IP_DIFFIM_ASSESSSPATIALKERNELVISITOR_H
14
15
#include "
lsst/afw/math.h
"
16
#include "
lsst/afw/image.h
"
17
#include "
lsst/ip/diffim.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
AssessSpatialKernelVisitor
:
public
lsst::afw::math::CandidateVisitor
{
27
typedef
lsst::afw::image::MaskedImage<PixelT>
MaskedImageT
;
28
public
:
29
typedef
boost::shared_ptr<AssessSpatialKernelVisitor<PixelT> >
Ptr
;
30
31
AssessSpatialKernelVisitor
(
32
lsst::afw::math::LinearCombinationKernel::Ptr
spatialKernel,
33
lsst::afw::math::Kernel::SpatialFunctionPtr
spatialBackground,
34
lsst::pex::policy::Policy
const
& policy
35
);
36
virtual
~AssessSpatialKernelVisitor
() {};
37
38
void
reset
() {
_nGood
= 0;
_nRejected
= 0;
_nProcessed
= 0;}
39
40
int
getNGood
() {
return
_nGood
;}
41
int
getNRejected
() {
return
_nRejected
;}
42
int
getNProcessed
() {
return
_nProcessed
;}
43
void
processCandidate
(
lsst::afw::math::SpatialCellCandidate
*candidate);
44
45
private
:
46
lsst::afw::math::LinearCombinationKernel::Ptr
_spatialKernel
;
47
lsst::afw::math::Kernel::SpatialFunctionPtr
_spatialBackground
;
48
lsst::pex::policy::Policy
_policy
;
49
ImageStatistics<PixelT>
_imstats
;
50
int
_nGood
;
51
int
_nRejected
;
52
int
_nProcessed
;
53
54
bool
_useCoreStats
;
55
int
_coreRadius
;
56
};
57
58
template
<
typename
PixelT>
59
boost::shared_ptr<AssessSpatialKernelVisitor<PixelT> >
60
makeAssessSpatialKernelVisitor
(
61
lsst::afw::math::LinearCombinationKernel::Ptr
spatialKernel,
62
lsst::afw::math::Kernel::SpatialFunctionPtr
spatialBackground,
63
lsst::pex::policy::Policy
const
& policy
64
) {
65
66
return
typename
AssessSpatialKernelVisitor<PixelT>::Ptr
(
67
new
AssessSpatialKernelVisitor<PixelT>
(spatialKernel, spatialBackground, policy)
68
);
69
}
70
71
}}}}
// end of namespace lsst::ip::diffim::detail
72
73
#endif
math.h
An include file to include the public header files for lsst::afw::math.
lsst::afw::math::Kernel::SpatialFunctionPtr
boost::shared_ptr< lsst::afw::math::Function2< double > > SpatialFunctionPtr
Definition:
Kernel.h:143
diffim.h
An include file to include the header files for lsst::ip::diffim.
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_nProcessed
int _nProcessed
Number of candidates processed during processCandidate()
Definition:
AssessSpatialKernelVisitor.h:52
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::Ptr
boost::shared_ptr< AssessSpatialKernelVisitor< PixelT > > Ptr
Definition:
AssessSpatialKernelVisitor.h:29
lsst::ip::diffim::detail::AssessSpatialKernelVisitor
Asseses the quality of a candidate given a spatial kernel and background model.
Definition:
AssessSpatialKernelVisitor.h:26
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::getNProcessed
int getNProcessed()
Definition:
AssessSpatialKernelVisitor.h:42
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::AssessSpatialKernelVisitor
AssessSpatialKernelVisitor(lsst::afw::math::LinearCombinationKernel::Ptr spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::pex::policy::Policy const &policy)
Definition:
AssessSpatialKernelVisitor.cc:55
lsst::pex::policy::Policy
a container for holding hierarchical configuration data in memory.
Definition:
Policy.h:169
lsst::afw::math::LinearCombinationKernel::Ptr
boost::shared_ptr< LinearCombinationKernel > Ptr
Definition:
Kernel.h:818
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::~AssessSpatialKernelVisitor
virtual ~AssessSpatialKernelVisitor()
Definition:
AssessSpatialKernelVisitor.h:36
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::MaskedImageT
lsst::afw::image::MaskedImage< PixelT > MaskedImageT
Definition:
AssessSpatialKernelVisitor.h:27
image.h
An include file to include the header files for lsst::afw::image.
lsst::ip::diffim::detail::makeAssessSpatialKernelVisitor
boost::shared_ptr< AssessSpatialKernelVisitor< PixelT > > makeAssessSpatialKernelVisitor(lsst::afw::math::LinearCombinationKernel::Ptr spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::pex::policy::Policy const &policy)
Definition:
AssessSpatialKernelVisitor.h:60
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_useCoreStats
bool _useCoreStats
Extracted from policy.
Definition:
AssessSpatialKernelVisitor.h:54
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_nRejected
int _nRejected
Number of candidates rejected during processCandidate()
Definition:
AssessSpatialKernelVisitor.h:51
lsst::afw::image::MaskedImage
A class to manipulate images, masks, and variance as a single object.
Definition:
MaskedImage.h:77
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_spatialKernel
lsst::afw::math::LinearCombinationKernel::Ptr _spatialKernel
Spatial kernel function.
Definition:
AssessSpatialKernelVisitor.h:46
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_imstats
ImageStatistics< PixelT > _imstats
To calculate statistics of difference image.
Definition:
AssessSpatialKernelVisitor.h:49
lsst::ip::diffim::ImageStatistics
Class to calculate difference image statistics.
Definition:
ImageStatistics.h:58
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_spatialBackground
lsst::afw::math::Kernel::SpatialFunctionPtr _spatialBackground
Spatial background function.
Definition:
AssessSpatialKernelVisitor.h:47
Policy.h
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::processCandidate
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
Definition:
AssessSpatialKernelVisitor.cc:73
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_nGood
int _nGood
Number of good candidates remaining.
Definition:
AssessSpatialKernelVisitor.h:50
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::getNGood
int getNGood()
Definition:
AssessSpatialKernelVisitor.h:40
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::reset
void reset()
Definition:
AssessSpatialKernelVisitor.h:38
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_coreRadius
int _coreRadius
Extracted from policy.
Definition:
AssessSpatialKernelVisitor.h:55
lsst::afw::math::SpatialCellCandidate
Definition:
SpatialCell.h:74
lsst::afw::math::CandidateVisitor
Definition:
SpatialCell.h:61
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::getNRejected
int getNRejected()
Definition:
AssessSpatialKernelVisitor.h:41
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::_policy
lsst::pex::policy::Policy _policy
Policy controlling behavior.
Definition:
AssessSpatialKernelVisitor.h:48
Generated on Thu Sep 24 2015 02:29:19 for LSSTApplications by
1.8.5