22 #include "pybind11/pybind11.h"
30 using namespace pybind11::literals;
45 template <
typename MaskT>
47 py::class_<FindSetBits<MaskT>>
cls(mod, (
"FindSetBits" + suffix).c_str());
49 cls.def(py::init<>());
51 cls.def(
"reset", &FindSetBits<MaskT>::reset);
52 cls.def(
"getBits", &FindSetBits<MaskT>::getBits);
53 cls.def(
"apply", &FindSetBits<MaskT>::apply,
"mask"_a);
59 py::module::import(
"lsst.afw.image");
61 declareFindSetBits<afw::image::Mask<afw::image::MaskPixel>>(mod,
"U");