matchers_impl.cpp
Go to the documentation of this file.
1 #include "matchers_impl.h"
2 
4 
5 namespace python
6 {
7  namespace pointmatcher
8  {
9  namespace impls
10  {
11  void pybindMatchersImpl(py::module& p_module)
12  {
14  py::class_<MatchersImpl, std::shared_ptr<MatchersImpl>> pyMatchersImpl(p_module, "MatchersImpl");
15 
16  using NullMatcher = MatchersImpl::NullMatcher;
17  py::class_<NullMatcher, std::shared_ptr<NullMatcher>, Matcher>(pyMatchersImpl, "NullMatcher")
18  .def_static("description", &NullMatcher::description)
19 
20  .def(py::init<>()).def("init", &NullMatcher::init).def("findClosests", &NullMatcher::findClosests);
21 
22  using KDTreeMatcher = MatchersImpl::KDTreeMatcher;
23  py::class_<KDTreeMatcher, std::shared_ptr<KDTreeMatcher>, Matcher>(pyMatchersImpl, "KDTreeMatcher")
24  .def_static("description", &KDTreeMatcher::description)
25  .def_static("availableParameters", &KDTreeMatcher::availableParameters)
26 
27  .def_readonly("knn", &KDTreeMatcher::knn).def_readonly("epsilon", &KDTreeMatcher::epsilon)
28  .def_readonly("searchType", &KDTreeMatcher::searchType)
29  .def_readonly("maxDist", &KDTreeMatcher::maxDist)
30 
31  .def(py::init<const Parameters&>(), py::arg("params") = Parameters())
32  .def("init", &KDTreeMatcher::init).def("findClosests", &KDTreeMatcher::findClosests);
33 
34  using KDTreeVarDistMatcher = MatchersImpl::KDTreeVarDistMatcher;
35  py::class_<KDTreeVarDistMatcher, std::shared_ptr<KDTreeVarDistMatcher>, Matcher>(pyMatchersImpl, "KDTreeVarDistMatcher")
36  .def_static("description", &KDTreeVarDistMatcher::description)
37  .def_static("availableParameters", &KDTreeVarDistMatcher::availableParameters)
38 
39  .def_readonly("knn", &KDTreeVarDistMatcher::knn)
40  .def_readonly("epsilon", &KDTreeVarDistMatcher::epsilon)
41  .def_readonly("searchType", &KDTreeVarDistMatcher::searchType)
42  .def_readonly("maxDistField", &KDTreeVarDistMatcher::maxDistField)
43 
44  .def(py::init<const Parameters&>(), py::arg("params") = Parameters())
45  .def("init", &KDTreeVarDistMatcher::init).def("findClosests", &KDTreeVarDistMatcher::findClosests);
46  }
47  }
48  }
49 }
void pybindMatchersImpl(py::module &p_module)
PM::Parameters Parameters
PM::Matcher Matcher


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:38:02