inspector.cpp
Go to the documentation of this file.
1 #include "inspector.h"
2 
3 namespace python
4 {
5  namespace pointmatcher
6  {
7  void pybindInspector(py::class_<PM>& p_class)
8  {
9  py::class_<Inspector, std::shared_ptr<Inspector>, Parametrizable>(p_class, "Inspector", "An inspector allows to log data at the different steps, for analysis.")
10  .def(py::init<>())
11  .def(py::init<const std::string&, const ParametersDoc, const Parameters&>(), py::arg("className"), py::arg("paramsDoc"), py::arg("params"))
12 
13  .def("init", &Inspector::init)
14 
15  .def("addStat", &Inspector::addStat, py::arg("name"), py::arg("data"))
16  .def("dumpStats", [](Inspector& self)
17  {
18  std::ostringstream oss;
19  self.dumpStats(oss);
20  py::print(oss.str());
21  }).def("dumpStatsHeader", [](Inspector& self)
22  {
23  std::ostringstream oss;
24  self.dumpStatsHeader(oss);
25  py::print(oss.str());
26  })
27 
28  .def("dumpIteration", &Inspector::dumpIteration, py::arg("iterationNumber"), py::arg("parameters"), py::arg("filteredReference"), py::arg("reading"), py::arg("matches"), py::arg("outlierWeights"), py::arg("transformationCheckers"))
29  .def("finish", &Inspector::finish, py::arg("iterationCount"));
30  }
31  }
32 }
python::pointmatcher::pybindInspector
void pybindInspector(py::class_< PM > &p_class)
Definition: inspector.cpp:7
python
Definition: add_descriptor.cpp:5
Inspector
PM::Inspector Inspector
Definition: pypoint_matcher_helper.h:31
PointMatcherSupport::Parametrizable
The superclass of classes that are constructed using generic parameters. This class provides the para...
Definition: Parametrizable.h:141
inspector.h


libpointmatcher
Author(s):
autogenerated on Mon Jan 1 2024 03:24:43