12 #ifndef LSST_IP_DIFFIM_BUILDSINGLEKERNELVISITOR_H
13 #define LSST_IP_DIFFIM_BUILDSINGLEKERNELVISITOR_H
17 #include "lsst/afw/image.h"
18 #include "lsst/afw/math.h"
20 #include "lsst/pex/policy/Policy.h"
29 template<
typename PixelT>
33 typedef std::shared_ptr<BuildSingleKernelVisitor<PixelT> >
Ptr;
36 lsst::afw::math::KernelList
const& basisList,
37 lsst::pex::policy::Policy
const& policy
40 lsst::afw::math::KernelList
const& basisList,
41 lsst::pex::policy::Policy
const& policy,
42 Eigen::MatrixXd
const& hMat
75 template<
typename PixelT>
76 std::shared_ptr<BuildSingleKernelVisitor<PixelT> >
78 lsst::afw::math::KernelList
const& basisList,
79 lsst::pex::policy::Policy
const& policy
82 return std::shared_ptr<BuildSingleKernelVisitor<PixelT>>(
87 template<
typename PixelT>
88 std::shared_ptr<BuildSingleKernelVisitor<PixelT> >
90 lsst::afw::math::KernelList
const& basisList,
91 lsst::pex::policy::Policy
const& policy,
92 Eigen::MatrixXd
const & hMat
95 return std::shared_ptr<BuildSingleKernelVisitor<PixelT>>(
std::shared_ptr< BuildSingleKernelVisitor< PixelT > > Ptr
std::shared_ptr< BuildSingleKernelVisitor< PixelT > > makeBuildSingleKernelVisitor(lsst::afw::math::KernelList const &basisList, lsst::pex::policy::Policy const &policy)
lsst::afw::math::KernelList const _basisList
Basis set.
ImageStatistics< PixelT > _imstats
To calculate statistics of difference image.
bool _useCoreStats
Extracted from _policy.
bool _useRegularization
Regularize if delta function basis.
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
lsst::pex::policy::Policy _policy
Policy controlling behavior.
bool _skipBuilt
Skip over built candidates during processCandidate()
Eigen::MatrixXd const _hMat
Regularization matrix.
Builds the convolution kernel for a given candidate.
Image Subtraction helper functions.
lsst::afw::image::MaskedImage< PixelT > MaskedImageT
BuildSingleKernelVisitor(lsst::afw::math::KernelList const &basisList, lsst::pex::policy::Policy const &policy)
int _coreRadius
Extracted from _policy.
Class to calculate difference image statistics.
void setSkipBuilt(bool skip)
virtual ~BuildSingleKernelVisitor()
int _nRejected
Number of candidates rejected during processCandidate()
int _nProcessed
Number of candidates processed during processCandidate()