23 #include "pybind11/pybind11.h" 27 namespace py = pybind11;
36 template <
typename WeightPixelT>
37 void declareSetCoaddEdgeBits(py::module &mod) {
38 namespace afwImage = lsst::afw::image;
40 mod.def(
"setCoaddEdgeBits",
41 (
void (*)(afwImage::Mask<afwImage::MaskPixel> &, afwImage::Image<WeightPixelT>
const &)) &
43 "coaddMask"_a,
"weightMap"_a);
49 py::module::import(
"lsst.afw.image");
51 py::module mod(
"setCoaddEdgeBits");
53 declareSetCoaddEdgeBits<double>(mod);
54 declareSetCoaddEdgeBits<float>(mod);
55 declareSetCoaddEdgeBits<int>(mod);
56 declareSetCoaddEdgeBits<std::uint16_t>(mod);
PYBIND11_PLUGIN(setCoaddEdgeBits)