22 #include "pybind11/pybind11.h" 23 #include "pybind11/stl.h" 46 template <
typename PixelT>
49 mod, (
"KernelCandidateDetection" + suffix).c_str());
51 cls.def(py::init<pex::policy::Policy const &>(),
"policy"_a);
53 cls.def(
"apply", &KernelCandidateDetection<PixelT>::apply,
"templateMaskedImage"_a,
54 "scienceMaskedImage"_a);
55 cls.def(
"growCandidate", &KernelCandidateDetection<PixelT>::growCandidate,
"footprint"_a,
"fpGrowPix"_a,
56 "templateMaskedImage"_a,
"scienceMaskedImage"_a);
57 cls.def(
"getFootprints", &KernelCandidateDetection<PixelT>::getFootprints);
63 py::module::import(
"lsst.afw.image");
64 py::module::import(
"lsst.afw.detection");
65 py::module::import(
"lsst.pex.policy");
67 declareKernelCandidateDetection<float>(mod,
"F");
Detect candidates for kernels within 2 images.
A base class for image defects.
PYBIND11_MODULE(kernelCandidateDetection, mod)