22 #include "pybind11/pybind11.h"
23 #include "pybind11/stl.h"
25 #include "lsst/afw/detection/Footprint.h"
26 #include "lsst/afw/detection/Psf.h"
29 namespace py = pybind11;
30 using namespace pybind11::literals;
34 namespace algorithms {
38 template <
typename PixelT>
39 void declareFindCosmicRays(py::module& mod) {
40 mod.def(
"findCosmicRays", &
findCosmicRays<lsst::afw::image::MaskedImage<PixelT>>,
"image"_a,
"psf"_a,
41 "bkgd"_a,
"policy"_a,
"keep"_a =
false);
49 declareFindCosmicRays<float>(mod);
PYBIND11_PLUGIN(binnedWcs)
std::vector< std::shared_ptr< lsst::afw::detection::Footprint > > findCosmicRays(MaskedImageT &image, lsst::afw::detection::Psf const &psf, double const bkgd, lsst::pex::policy::Policy const &policy, bool const keep=false)