25 #include "pybind11/pybind11.h" 39 py::class_<Chi2Statistic, std::shared_ptr<Chi2Statistic>>
cls(mod,
"Chi2Statistic");
41 cls.def(py::init<>());
45 cls.def_readwrite(
"chi2", &Chi2Statistic::chi2);
46 cls.def_readwrite(
"ndof", &Chi2Statistic::ndof);
void addOutputOp(PyClass &cls, std::string const &method)
Add __str__ or __repr__ method implemented by operator<<.
PYBIND11_MODULE(camera, mod)
A base class for image defects.