12 #ifndef LSST_IP_DIFFIM_BUILDSPATIALKERNELVISITOR_H 13 #define LSST_IP_DIFFIM_BUILDSPATIALKERNELVISITOR_H 16 #include "lsst/afw/math.h" 17 #include "lsst/afw/image.h" 19 #include "lsst/pex/policy/Policy.h" 26 template<
typename PixelT>
29 typedef std::shared_ptr<BuildSpatialKernelVisitor<PixelT> >
Ptr;
32 lsst::afw::math::KernelList
const& basisList,
33 lsst::afw::geom::Box2I
const& regionBBox,
34 lsst::pex::policy::Policy policy
45 std::pair<std::shared_ptr<lsst::afw::math::LinearCombinationKernel>,
53 template<
typename PixelT>
54 std::shared_ptr<BuildSpatialKernelVisitor<PixelT> >
56 lsst::afw::math::KernelList
const& basisList,
57 lsst::afw::geom::Box2I
const& regionBBox,
58 lsst::pex::policy::Policy policy
61 return std::shared_ptr<BuildSpatialKernelVisitor<PixelT>>(
Creates a spatial kernel and background from a list of candidates.
An include file to include the header files for lsst::ip::diffim.
std::shared_ptr< BuildSpatialKernelVisitor< PixelT > > Ptr
void solveLinearEquation()
std::shared_ptr< SpatialKernelSolution > getKernelSolution()
int _nCandidates
Number of candidates visited.
BuildSpatialKernelVisitor(lsst::afw::math::KernelList const &basisList, lsst::afw::geom::Box2I const ®ionBBox, lsst::pex::policy::Policy policy)
std::pair< std::shared_ptr< lsst::afw::math::LinearCombinationKernel >, lsst::afw::math::Kernel::SpatialFunctionPtr > getSolutionPair()
std::shared_ptr< BuildSpatialKernelVisitor< PixelT > > makeBuildSpatialKernelVisitor(lsst::afw::math::KernelList const &basisList, lsst::afw::geom::Box2I const ®ionBBox, lsst::pex::policy::Policy policy)
std::shared_ptr< SpatialKernelSolution > _kernelSolution
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)