22 #include "pybind11/pybind11.h" 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");
Image Subtraction helper functions.
A base class for image defects.
PYBIND11_MODULE(findSetBits, mod)