22 #include <pybind11/pybind11.h> 23 #include <pybind11/stl.h> 24 #include "ndarray/pybind11.h" 36 py::class_<MapBox>
cls(mod,
"MapBox");
39 "map"_a,
"lbnd"_a,
"ubnd"_a,
"minOutCoord"_a = 1,
"maxOutCoord"_a = 0);
41 cls.def_readonly(
"lbndIn", &MapBox::lbndIn);
42 cls.def_readonly(
"ubndIn", &MapBox::ubndIn);
43 cls.def_readonly(
"minOutCoord", &MapBox::minOutCoord);
44 cls.def_readonly(
"maxOutCoord", &MapBox::maxOutCoord);
45 cls.def_readonly(
"lbndOut", &MapBox::lbndOut);
46 cls.def_readonly(
"ubndOut", &MapBox::ubndOut);
47 cls.def_readonly(
"xl", &MapBox::xl);
48 cls.def_readonly(
"xu", &MapBox::xu);
AST wrapper classes and functions.
PYBIND11_MODULE(camera, mod)