lsst.ip.diffim g6c579da96f+23e8e118b1
Loading...
Searching...
No Matches
BuildSpatialKernelVisitor.h
Go to the documentation of this file.
1// -*- lsst-c++ -*-
12#ifndef LSST_IP_DIFFIM_BUILDSPATIALKERNELVISITOR_H
13#define LSST_IP_DIFFIM_BUILDSPATIALKERNELVISITOR_H
14
15#include "Eigen/Core"
16#include "lsst/afw/math.h"
17#include "lsst/afw/image.h"
18#include "lsst/geom.h"
19#include "lsst/ip/diffim.h"
21
22namespace lsst {
23namespace ip {
24namespace diffim {
25namespace detail {
26
27 template<typename PixelT>
29 public:
31
33 lsst::afw::math::KernelList const& basisList,
34 lsst::geom::Box2I const& regionBBox,
36 );
37
38 int getNCandidates() {return _nCandidates;}
39
41
43
45
48
49 private:
51 int _nCandidates;
52 };
53
54 template<typename PixelT>
57 lsst::afw::math::KernelList const& basisList,
58 lsst::geom::Box2I const& regionBBox,
60 ) {
61
63 new BuildSpatialKernelVisitor<PixelT>(basisList, regionBBox, ps)
64 );
65 }
66
67}}}} // end of namespace lsst::ip::diffim::detail
68
69#endif
Creates a spatial kernel and background from a list of candidates.
std::pair< std::shared_ptr< lsst::afw::math::LinearCombinationKernel >, lsst::afw::math::Kernel::SpatialFunctionPtr > getSolutionPair()
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
std::shared_ptr< SpatialKernelSolution > getKernelSolution()
std::shared_ptr< BuildSpatialKernelVisitor< PixelT > > Ptr
An include file to include the header files for lsst::ip::diffim.
std::shared_ptr< BuildSpatialKernelVisitor< PixelT > > makeBuildSpatialKernelVisitor(lsst::afw::math::KernelList const &basisList, lsst::geom::Box2I const &regionBBox, lsst::daf::base::PropertySet const &ps)