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 }
compute_overlap.knn
int knn
Definition: compute_overlap.py:128
python::pointmatcher::impls::pybindMatchersImpl
void pybindMatchersImpl(py::module &p_module)
Definition: matchers_impl.cpp:11
Parameters
PM::Parameters Parameters
Definition: filterProfiler.cpp:20
Matcher
PM::Matcher Matcher
Definition: pypoint_matcher_helper.h:24
MatchersImpl
Definition: MatchersImpl.h:47
python
Definition: add_descriptor.cpp:5
MatchersImpl.h
matchers_impl.h
MatchersImpl::KDTreeMatcher
Definition: MatchersImpl.h:74
MatchersImpl::KDTreeVarDistMatcher
Definition: MatchersImpl.h:105
MatchersImpl::NullMatcher
Definition: MatchersImpl.h:62


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