14 py::class_<MatchersImpl, std::shared_ptr<MatchersImpl>> pyMatchersImpl(p_module,
"MatchersImpl");
17 py::class_<NullMatcher, std::shared_ptr<NullMatcher>,
Matcher>(pyMatchersImpl,
"NullMatcher")
18 .def_static(
"description", &NullMatcher::description)
20 .def(py::init<>()).def(
"init", &NullMatcher::init).def(
"findClosests", &NullMatcher::findClosests);
23 py::class_<KDTreeMatcher, std::shared_ptr<KDTreeMatcher>,
Matcher>(pyMatchersImpl,
"KDTreeMatcher")
24 .def_static(
"description", &KDTreeMatcher::description)
25 .def_static(
"availableParameters", &KDTreeMatcher::availableParameters)
27 .def_readonly(
"knn", &
KDTreeMatcher::knn).def_readonly(
"epsilon", &KDTreeMatcher::epsilon)
28 .def_readonly(
"searchType", &KDTreeMatcher::searchType)
29 .def_readonly(
"maxDist", &KDTreeMatcher::maxDist)
31 .def(py::init<const Parameters&>(), py::arg(
"params") =
Parameters())
32 .def(
"init", &KDTreeMatcher::init).def(
"findClosests", &KDTreeMatcher::findClosests);
35 py::class_<KDTreeVarDistMatcher, std::shared_ptr<KDTreeVarDistMatcher>,
Matcher>(pyMatchersImpl,
"KDTreeVarDistMatcher")
36 .def_static(
"description", &KDTreeVarDistMatcher::description)
37 .def_static(
"availableParameters", &KDTreeVarDistMatcher::availableParameters)
40 .def_readonly(
"epsilon", &KDTreeVarDistMatcher::epsilon)
41 .def_readonly(
"searchType", &KDTreeVarDistMatcher::searchType)
42 .def_readonly(
"maxDistField", &KDTreeVarDistMatcher::maxDistField)
44 .def(py::init<const Parameters&>(), py::arg(
"params") =
Parameters())
45 .def(
"init", &KDTreeVarDistMatcher::init).def(
"findClosests", &KDTreeVarDistMatcher::findClosests);
void pybindMatchersImpl(py::module &p_module)
PM::Parameters Parameters