lsst.ip.diffim
g174f8ebed5+0e497d1560
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lsst
ip
diffim
AssessSpatialKernelVisitor.h
Go to the documentation of this file.
1
// -*- lsst-c++ -*-
11
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/daf/base/PropertySet.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
std::shared_ptr<AssessSpatialKernelVisitor<PixelT>
>
Ptr
;
30
31
AssessSpatialKernelVisitor
(
32
std::shared_ptr<lsst::afw::math::LinearCombinationKernel>
spatialKernel,
33
lsst::afw::math::Kernel::SpatialFunctionPtr
spatialBackground,
34
lsst::daf::base::PropertySet
const
& ps
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
std::shared_ptr<lsst::afw::math::LinearCombinationKernel>
_spatialKernel;
47
lsst::afw::math::Kernel::SpatialFunctionPtr
_spatialBackground;
48
lsst::daf::base::PropertySet::Ptr
_ps;
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
std::shared_ptr<AssessSpatialKernelVisitor<PixelT>
>
60
makeAssessSpatialKernelVisitor
(
61
std::shared_ptr<lsst::afw::math::LinearCombinationKernel>
spatialKernel,
62
lsst::afw::math::Kernel::SpatialFunctionPtr
spatialBackground,
63
lsst::daf::base::PropertySet
const
& ps
64
) {
65
66
return
std::shared_ptr<AssessSpatialKernelVisitor<PixelT>
>(
67
new
AssessSpatialKernelVisitor<PixelT>
(spatialKernel, spatialBackground, ps)
68
);
69
}
70
71
}}}}
// end of namespace lsst::ip::diffim::detail
72
73
#endif
image.h
PropertySet.h
lsst::afw::image::MaskedImage
lsst::afw::math::CandidateVisitor
lsst::afw::math::Kernel::SpatialFunctionPtr
std::shared_ptr< lsst::afw::math::Function2< double > > SpatialFunctionPtr
lsst::afw::math::SpatialCellCandidate
lsst::daf::base::PropertySet
lsst::daf::base::PropertySet::Ptr
std::shared_ptr< PropertySet > Ptr
lsst::ip::diffim::ImageStatistics
Class to calculate difference image statistics.
Definition
ImageStatistics.h:59
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::getNRejected
int getNRejected()
Definition
AssessSpatialKernelVisitor.h:41
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::AssessSpatialKernelVisitor
AssessSpatialKernelVisitor(std::shared_ptr< lsst::afw::math::LinearCombinationKernel > spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::daf::base::PropertySet const &ps)
Definition
AssessSpatialKernelVisitor.cc:54
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::~AssessSpatialKernelVisitor
virtual ~AssessSpatialKernelVisitor()
Definition
AssessSpatialKernelVisitor.h:36
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::reset
void reset()
Definition
AssessSpatialKernelVisitor.h:38
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::getNProcessed
int getNProcessed()
Definition
AssessSpatialKernelVisitor.h:42
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::Ptr
std::shared_ptr< AssessSpatialKernelVisitor< PixelT > > Ptr
Definition
AssessSpatialKernelVisitor.h:29
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::getNGood
int getNGood()
Definition
AssessSpatialKernelVisitor.h:40
lsst::ip::diffim::detail::AssessSpatialKernelVisitor::processCandidate
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
Definition
AssessSpatialKernelVisitor.cc:72
diffim.h
An include file to include the header files for lsst::ip::diffim.
math.h
lsst::ip::diffim::detail
Definition
AssessSpatialKernelVisitor.h:23
lsst::ip::diffim::detail::makeAssessSpatialKernelVisitor
std::shared_ptr< AssessSpatialKernelVisitor< PixelT > > makeAssessSpatialKernelVisitor(std::shared_ptr< lsst::afw::math::LinearCombinationKernel > spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::daf::base::PropertySet const &ps)
Definition
AssessSpatialKernelVisitor.h:60
lsst::ip::diffim
Definition
AssessSpatialKernelVisitor.h:22
lsst::ip
Definition
AssessSpatialKernelVisitor.h:21
lsst
std::shared_ptr
Generated on
for lsst.ip.diffim by
1.17.0