24 #include <pybind11/pybind11.h>
31 using namespace pybind11::literals;
39 template <
typename ImageT>
41 mod.def(
"writeFitsImage",
42 (
void (*)(
int, ImageT
const &, geom::SkyWcs
const *,
char const *)) & writeBasicFits<ImageT>,
43 "fd"_a,
"data"_a,
"wcs"_a = NULL,
"title"_a = NULL);
45 mod.def(
"writeFitsImage",
46 (
void (*)(
std::string const &, ImageT
const &, geom::SkyWcs
const *,
char const *)) &
47 writeBasicFits<ImageT>,
48 "filename"_a,
"data"_a,
"wcs"_a = NULL,
"title"_a = NULL);
54 declareAll<image::Image<std::uint16_t>>(mod);
55 declareAll<image::Image<std::uint64_t>>(mod);
56 declareAll<image::Image<int>>(mod);
57 declareAll<image::Image<float>>(mod);
58 declareAll<image::Image<double>>(mod);
59 declareAll<image::Mask<std::uint16_t>>(mod);
60 declareAll<image::Mask<image::MaskPixel>>(mod);