24 #include <pybind11/pybind11.h>
30 namespace py = pybind11;
31 using namespace pybind11::literals;
39 template <
typename ImageT>
40 void declareAll(py::module &mod) {
41 mod.def(
"writeFitsImage",
42 (
void (*)(
int, ImageT
const &,
image::Wcs 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 &,
image::Wcs const *,
char const *)) &
47 writeBasicFits<ImageT>,
48 "filename"_a,
"data"_a,
"wcs"_a = NULL,
"title"_a = NULL);
54 py::module mod(
"_simpleFits",
"");
56 declareAll<image::Image<std::uint16_t>>(mod);
57 declareAll<image::Image<std::uint64_t>>(mod);
58 declareAll<image::Image<int>>(mod);
59 declareAll<image::Image<float>>(mod);
60 declareAll<image::Image<double>>(mod);
61 declareAll<image::Mask<std::uint16_t>>(mod);
Implementation of the WCS standard for a any projection.
PYBIND11_PLUGIN(_cameraPoint)