12 #ifndef LSST_IP_DIFFIM_ASSESSSPATIALKERNELVISITOR_H
13 #define LSST_IP_DIFFIM_ASSESSSPATIALKERNELVISITOR_H
15 #include "lsst/afw/math.h"
16 #include "lsst/afw/image.h"
18 #include "lsst/pex/policy/Policy.h"
25 template<
typename PixelT>
29 typedef std::shared_ptr<AssessSpatialKernelVisitor<PixelT> >
Ptr;
32 std::shared_ptr<lsst::afw::math::LinearCombinationKernel> spatialKernel,
33 lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground,
34 lsst::pex::policy::Policy
const& policy
58 template<
typename PixelT>
59 std::shared_ptr<AssessSpatialKernelVisitor<PixelT> >
61 std::shared_ptr<lsst::afw::math::LinearCombinationKernel> spatialKernel,
62 lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground,
63 lsst::pex::policy::Policy
const& policy
66 return std::shared_ptr<AssessSpatialKernelVisitor<PixelT>>(
std::shared_ptr< AssessSpatialKernelVisitor< PixelT > > Ptr
An include file to include the header files for lsst::ip::diffim.
int _nProcessed
Number of candidates processed during processCandidate()
Asseses the quality of a candidate given a spatial kernel and background model.
AssessSpatialKernelVisitor(std::shared_ptr< lsst::afw::math::LinearCombinationKernel > spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::pex::policy::Policy const &policy)
std::shared_ptr< AssessSpatialKernelVisitor< PixelT > > makeAssessSpatialKernelVisitor(std::shared_ptr< lsst::afw::math::LinearCombinationKernel > spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::pex::policy::Policy const &policy)
virtual ~AssessSpatialKernelVisitor()
lsst::afw::image::MaskedImage< PixelT > MaskedImageT
bool _useCoreStats
Extracted from policy.
int _nRejected
Number of candidates rejected during processCandidate()
std::shared_ptr< lsst::afw::math::LinearCombinationKernel > _spatialKernel
Spatial kernel function.
ImageStatistics< PixelT > _imstats
To calculate statistics of difference image.
Class to calculate difference image statistics.
lsst::afw::math::Kernel::SpatialFunctionPtr _spatialBackground
Spatial background function.
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
int _nGood
Number of good candidates remaining.
int _coreRadius
Extracted from policy.
lsst::pex::policy::Policy _policy
Policy controlling behavior.