LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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
std::vector< lsst::afw::detection::Footprint::Ptr > _footprints
Represent a set of pixels of an arbitrary shape and size.
boost::shared_ptr< Footprint > Ptr
Definition: Footprint.h:67
boost::uint16_t MaskPixel
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...
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