LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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:67
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