22 #include "pybind11/pybind11.h" 
   29 using namespace pybind11::literals;
 
   37 template <
typename PixelT>
 
   40             mod, (
"CountMaskedPixels" + suffix).c_str());
 
   42     cls.def(
"reset", &CountMaskedPixels<PixelT>::reset);
 
   43     cls.def(
"apply", &CountMaskedPixels<PixelT>::apply, 
"image"_a, 
"bitmask"_a);
 
   44     cls.def(
"getCount", &CountMaskedPixels<PixelT>::getCount);
 
   57 template <
typename PixelT>
 
   59     declareCountMaskedPixels<PixelT>(mod, suffix);
 
   61     mod.def(
"maskNans", &maskNans<PixelT>, 
"maskedImage"_a, 
"maskVal"_a, 
"allow"_a = 0);
 
   62     mod.def(
"fitOverscanImage", &fitOverscanImage<PixelT, double>, 
"overscanFunction"_a, 
"overscan"_a,
 
   63             "stepSize"_a = 1.1, 
"sigma"_a = 1);
 
   69     declareAll<float>(mod, 
"F");
 
   70     declareAll<double>(mod, 
"D");