23 #include "pybind11/pybind11.h" 35 using PyIdFactory = py::class_<IdFactory, std::shared_ptr<IdFactory>>;
38 PyIdFactory
cls(mod,
"IdFactory");
39 cls.def(
"__call__", &IdFactory::operator());
40 cls.def(
"notify", &IdFactory::notify,
"id"_a);
42 cls.def_static(
"makeSimple", IdFactory::makeSimple);
43 cls.def_static(
"makeSource", IdFactory::makeSource,
"expId"_a,
"reserved"_a);
44 cls.def_static(
"computeReservedFromMaxBits", IdFactory::computeReservedFromMaxBits,
"maxBits"_a);
PYBIND11_MODULE(camera, mod)
A base class for image defects.