23 #include "pybind11/pybind11.h" 50 template <
typename PixelT>
52 mod.def(
"makeSinglePixel", &makeSinglePixel<PixelT, MaskPixel, VariancePixel>,
"x"_a,
"m"_a,
"v"_a);
54 py::class_<SinglePixel<PixelT, MaskPixel, VariancePixel>>
cls(mod, name.
c_str());
56 cls.def(py::init<PixelT, MaskPixel, VariancePixel>(),
"image"_a,
"mask"_a = 0,
"variance"_a = 0);
62 declareSinglePixel<float>(mod,
"SinglePixelF");
63 declareSinglePixel<double>(mod,
"SinglePixelD");
64 declareSinglePixel<int>(mod,
"SinglePixelI");
65 declareSinglePixel<std::uint16_t>(mod,
"SinglePixelU");
66 declareSinglePixel<std::uint64_t>(mod,
"SinglePixelL");
PYBIND11_MODULE(pixel, mod)
A base class for image defects.
table::PointKey< int > pixel
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...