23 #include <pybind11/pybind11.h> 25 #include <pybind11/stl.h> 38 py::class_<FootprintControl> clsFootprintControl(mod,
"FootprintControl");
41 clsFootprintControl.def(py::init<>());
42 clsFootprintControl.def(py::init<bool, bool>(),
"circular"_a,
"isotropic"_a =
false);
43 clsFootprintControl.def(py::init<bool, bool, bool, bool>(),
"left"_a,
"right"_a,
"up"_a,
"down"_a);
46 clsFootprintControl.def(
"growCircular", &FootprintControl::growCircular);
47 clsFootprintControl.def(
"growIsotropic", &FootprintControl::growIsotropic);
48 clsFootprintControl.def(
"growLeft", &FootprintControl::growLeft);
49 clsFootprintControl.def(
"growRight", &FootprintControl::growRight);
50 clsFootprintControl.def(
"growUp", &FootprintControl::growUp);
51 clsFootprintControl.def(
"growDown", &FootprintControl::growDown);
53 clsFootprintControl.def(
"isCircular", &FootprintControl::isCircular);
54 clsFootprintControl.def(
"isIsotropic", &FootprintControl::isIsotropic);
55 clsFootprintControl.def(
"isLeft", &FootprintControl::isLeft);
56 clsFootprintControl.def(
"isRight", &FootprintControl::isRight);
57 clsFootprintControl.def(
"isUp", &FootprintControl::isUp);
58 clsFootprintControl.def(
"isDown", &FootprintControl::isDown);
60 py::class_<HeavyFootprintCtrl> clsHeavyFootprintCtrl(mod,
"HeavyFootprintCtrl");
62 py::enum_<HeavyFootprintCtrl::ModifySource>(clsHeavyFootprintCtrl,
"ModifySource")
63 .value(
"NONE", HeavyFootprintCtrl::ModifySource::NONE)
64 .value(
"SET", HeavyFootprintCtrl::ModifySource::SET)
67 clsHeavyFootprintCtrl.def(py::init<HeavyFootprintCtrl::ModifySource>(),
68 "modifySource"_a = HeavyFootprintCtrl::ModifySource::NONE);
70 clsHeavyFootprintCtrl.def(
"getModifySource", &HeavyFootprintCtrl::getModifySource);
71 clsHeavyFootprintCtrl.def(
"setModifySource", &HeavyFootprintCtrl::setModifySource);
72 clsHeavyFootprintCtrl.def(
"getImageVal", &HeavyFootprintCtrl::getImageVal);
73 clsHeavyFootprintCtrl.def(
"setImageVal", &HeavyFootprintCtrl::setImageVal);
74 clsHeavyFootprintCtrl.def(
"getMaskVal", &HeavyFootprintCtrl::getMaskVal);
75 clsHeavyFootprintCtrl.def(
"setMaskVal", &HeavyFootprintCtrl::setMaskVal);
76 clsHeavyFootprintCtrl.def(
"getVarianceVal", &HeavyFootprintCtrl::getVarianceVal);
77 clsHeavyFootprintCtrl.def(
"setVarianceVal", &HeavyFootprintCtrl::setVarianceVal);
A base class for image defects.
PYBIND11_MODULE(footprintCtrl, mod)