LSSTApplications  1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
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 boost::shared_ptr<KernelCandidateDetection> Ptr;
38  typedef boost::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
boost::uint16_t MaskPixel
std::vector< lsst::afw::detection::Footprint::Ptr > _footprints
Represent a set of pixels of an arbitrary shape and size.
a container for holding hierarchical configuration data in memory.
Definition: Policy.h:169
void apply(MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage)
Runs Detection on a single image for significant peaks, and checks returned Footprints for Masked pix...
boost::shared_ptr< Footprint > Ptr
Definition: Footprint.h:75
KernelCandidateDetection(lsst::pex::policy::Policy const &policy)
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)
boost::shared_ptr< KernelCandidateDetection > Ptr
boost::shared_ptr< lsst::afw::image::MaskedImage< PixelT > > MaskedImagePtr