23 #include "pybind11/pybind11.h"
27 namespace py = pybind11;
28 using namespace pybind11::literals;
36 template <
typename ImagePixelT>
37 void declareCopyGoodPixels(py::module &mod) {
38 namespace afwImage = lsst::afw::image;
40 mod.def(
"copyGoodPixels",
41 (
int (*)(afwImage::Image<ImagePixelT> &, afwImage::Image<ImagePixelT>
const &)) &
copyGoodPixels,
42 "destImage"_a,
"srcImage"_a);
43 mod.def(
"copyGoodPixels",
44 (
int (*)(afwImage::MaskedImage<ImagePixelT> &, afwImage::MaskedImage<ImagePixelT>
const &,
45 afwImage::MaskPixel
const)) &
47 "destImage"_a,
"srcImage"_a,
"badPixelMask"_a);
53 py::module::import(
"lsst.afw.image");
55 py::module mod(
"copyGoodPixels");
57 declareCopyGoodPixels<double>(mod);
58 declareCopyGoodPixels<float>(mod);
59 declareCopyGoodPixels<int>(mod);
60 declareCopyGoodPixels<std::uint16_t>(mod);
int copyGoodPixels(lsst::afw::image::Image< ImagePixelT > &destImage, lsst::afw::image::Image< ImagePixelT > const &srcImage)
copy good pixels from one image to another
PYBIND11_PLUGIN(addToCoadd)