lsst.ip.diffim  21.0.0-13-g5daad6e+f0998a7131
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 
22 namespace lsst {
23 namespace ip {
24 namespace diffim {
25 namespace 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 
42  void solveLinearEquation();
43 
44  inline std::shared_ptr<SpatialKernelSolution> getKernelSolution() {return _kernelSolution;}
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)
BuildSpatialKernelVisitor(lsst::afw::math::KernelList const &basisList, lsst::geom::Box2I const &regionBBox, lsst::daf::base::PropertySet const &ps)
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)