22 #include "pybind11/pybind11.h"
23 #include "pybind11/eigen.h"
24 #include "pybind11/stl.h"
29 #include "ndarray/pybind11.h"
37 using namespace pybind11::literals;
45 template <
typename MatchT>
51 "matches"_a,
"linearWcs"_a,
"order"_a,
"bbox"_a =
geom::Box2I(),
"ngrid"_a = 0);
53 cls.def(
"getNewWcs", &CreateWcsWithSip<MatchT>::getNewWcs);
54 cls.def(
"getScatterInPixels", &CreateWcsWithSip<MatchT>::getScatterInPixels);
55 cls.def(
"getScatterOnSky", &CreateWcsWithSip<MatchT>::getScatterOnSky);
56 cls.def(
"getLinearScatterInPixels", &CreateWcsWithSip<MatchT>::getLinearScatterInPixels);
57 cls.def(
"getLinearScatterOnSky", &CreateWcsWithSip<MatchT>::getLinearScatterOnSky);
58 cls.def(
"getOrder", &CreateWcsWithSip<MatchT>::getOrder);
59 cls.def(
"getNPoints", &CreateWcsWithSip<MatchT>::getNPoints);
60 cls.def(
"getNGrid", &CreateWcsWithSip<MatchT>::getNGrid);
61 cls.def(
"getSipA", &CreateWcsWithSip<MatchT>::getSipA, py::return_value_policy::copy);
62 cls.def(
"getSipB", &CreateWcsWithSip<MatchT>::getSipB, py::return_value_policy::copy);
63 cls.def(
"getSipAp", &CreateWcsWithSip<MatchT>::getSipAp, py::return_value_policy::copy);
64 cls.def(
"getSipBp", &CreateWcsWithSip<MatchT>::getSipBp, py::return_value_policy::copy);
66 mod.def(
"makeCreateWcsWithSip", &makeCreateWcsWithSip<MatchT>,
"matches"_a,
"linearWcs"_a,
"order"_a,
73 declareCreateWcsWithSip<afw::table::ReferenceMatch>(mod,
"CreateWcsWithSipReferenceMatch");
74 declareCreateWcsWithSip<afw::table::SourceMatch>(mod,
"CreateWcsWithSipSourceMatch");