LSSTApplications  11.0-13-gbb96280,12.1+18,12.1+7,12.1-1-g14f38d3+72,12.1-1-g16c0db7+5,12.1-1-g5961e7a+84,12.1-1-ge22e12b+23,12.1-11-g06625e2+4,12.1-11-g0d7f63b+4,12.1-19-gd507bfc,12.1-2-g7dda0ab+38,12.1-2-gc0bc6ab+81,12.1-21-g6ffe579+2,12.1-21-gbdb6c2a+4,12.1-24-g941c398+5,12.1-3-g57f6835+7,12.1-3-gf0736f3,12.1-37-g3ddd237,12.1-4-gf46015e+5,12.1-5-g06c326c+20,12.1-5-g648ee80+3,12.1-5-gc2189d7+4,12.1-6-ga608fc0+1,12.1-7-g3349e2a+5,12.1-7-gfd75620+9,12.1-9-g577b946+5,12.1-9-gc4df26a+10
LSSTDataManagementBasePackage
KernelCandidateDetection.h
Go to the documentation of this file.
1 // -*- lsst-c++ -*-
12 #ifndef LSST_IP_DIFFIM_KERNELCANDIDATEDETECTION_H
13 #define LSST_IP_DIFFIM_KERNELCANDIDATEDETECTION_H
14 
15 #include "lsst/afw/image/Image.h"
17 #include "lsst/pex/policy/Policy.h"
18 
19 namespace lsst {
20 namespace ip {
21 namespace diffim {
22 
34  template <typename PixelT>
36  public:
37  typedef std::shared_ptr<KernelCandidateDetection> Ptr;
38  typedef std::shared_ptr<lsst::afw::image::MaskedImage<PixelT> > MaskedImagePtr;
39 
41 
43 
44  void apply(MaskedImagePtr const& templateMaskedImage,
45  MaskedImagePtr const& scienceMaskedImage);
46 
48  int fpGrowPix,
49  MaskedImagePtr const& templateMaskedImage,
50  MaskedImagePtr const& scienceMaskedImage);
51 
52  std::vector<lsst::afw::detection::Footprint::Ptr> getFootprints() {return _footprints;};
53 
54  private:
57  std::vector<lsst::afw::detection::Footprint::Ptr> _footprints;
58  };
59 
60 
61 }}} // end of namespace lsst::ip::diffim
62 
63 #endif
std::uint16_t MaskPixel
std::vector< lsst::afw::detection::Footprint::Ptr > _footprints
Represent a set of pixels of an arbitrary shape and size.
std::shared_ptr< lsst::afw::image::MaskedImage< PixelT > > MaskedImagePtr
a container for holding hierarchical configuration data in memory.
Definition: Policy.h:169
std::shared_ptr< Footprint > Ptr
Definition: Footprint.h:67
void apply(MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage)
Runs Detection on a single image for significant peaks, and checks returned Footprints for Masked pix...
KernelCandidateDetection(lsst::pex::policy::Policy const &policy)
std::shared_ptr< KernelCandidateDetection > Ptr
std::vector< lsst::afw::detection::Footprint::Ptr > getFootprints()
Search through images for Footprints with no masked pixels.
Support for 2-D images.
bool growCandidate(lsst::afw::detection::Footprint::Ptr fp, int fpGrowPix, MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage)