24 #include <pybind11/pybind11.h> 37 py::module::import(
"astshim.frame");
39 py::class_<CmpFrame, std::shared_ptr<CmpFrame>, Frame>
cls(mod,
"CmpFrame");
41 cls.def(py::init<Frame const &, Frame const &, std::string const &>(),
"frame1"_a,
"frame2"_a,
43 cls.def(py::init<CmpFrame const &>());
45 cls.def(
"__getitem__", &CmpFrame::operator[], py::is_operator());
46 cls.def(
"__len__", [](CmpFrame
const &) {
return 2; });
48 cls.def(
"copy", &CmpFrame::copy);
AST wrapper classes and functions.
PYBIND11_MODULE(camera, mod)