gestalt.cpp
Go to the documentation of this file.
1 #include "gestalt.h"
2 
4 
5 namespace python
6 {
7  namespace datapointsfilters
8  {
9  void pybindGestalt(py::module& p_module)
10  {
12  py::class_<GestaltDataPointsFilter, std::shared_ptr<GestaltDataPointsFilter>, DataPointsFilter>(p_module, "GestaltDataPointsFilter")
13  .def_static("description", &GestaltDataPointsFilter::description)
14  .def_static("availableParameters", &GestaltDataPointsFilter::availableParameters)
15 
16  .def_readonly("ratio", &GestaltDataPointsFilter::ratio)
17  .def_readonly("radius", &GestaltDataPointsFilter::radius)
18  .def_readonly("knn", &GestaltDataPointsFilter::knn)
19  .def_readonly("vSizeX", &GestaltDataPointsFilter::vSizeX)
20  .def_readonly("vSizeY", &GestaltDataPointsFilter::vSizeY)
21  .def_readonly("vSizeZ", &GestaltDataPointsFilter::vSizeZ)
22  .def_readonly("maxBoxDim", &GestaltDataPointsFilter::maxBoxDim)
23  .def_readonly("maxTimeWindow", &GestaltDataPointsFilter::maxTimeWindow)
24  .def_readonly("keepMeans", &GestaltDataPointsFilter::keepMeans)
25  .def_readonly("averageExistingDescriptors", &GestaltDataPointsFilter::averageExistingDescriptors)
26  .def_readonly("keepNormals", &GestaltDataPointsFilter::keepNormals)
27  .def_readonly("keepEigenValues", &GestaltDataPointsFilter::keepEigenValues)
28  .def_readonly("keepEigenVectors", &GestaltDataPointsFilter::keepEigenVectors)
29  .def_readonly("keepCovariances", &GestaltDataPointsFilter::keepCovariances)
30  .def_readonly("keepGestaltFeatures", &GestaltDataPointsFilter::keepGestaltFeatures)
31 
32  .def(py::init<const Parameters&>(), py::arg("params") = Parameters(), "Constructor, uses parameter interface")
33 
34  .def("filter", &GestaltDataPointsFilter::filter, py::arg("input"))
35  .def("inPlaceFilter", &GestaltDataPointsFilter::inPlaceFilter, py::arg("cloud"))
36  .def("serializeGestaltMatrix", &GestaltDataPointsFilter::serializeGestaltMatrix, py::arg("gestaltFeatures"))
37  .def("calculateAngles", &GestaltDataPointsFilter::calculateAngles, py::arg("points"), py::arg("keyPoint"))
38  .def("calculateRadii", &GestaltDataPointsFilter::calculateRadii, py::arg("points"), py::arg("keyPoint"));
39  }
40  }
41 }
const bool averageExistingDescriptors
Definition: Gestalt.h:89
static const ParametersDoc availableParameters()
Definition: Gestalt.h:59
const bool keepCovariances
Definition: Gestalt.h:93
virtual DataPoints filter(const DataPoints &input)
Definition: Gestalt.cpp:79
const bool keepNormals
Definition: Gestalt.h:90
const bool keepEigenValues
Definition: Gestalt.h:91
const bool keepGestaltFeatures
Definition: Gestalt.h:94
PM::Parameters Parameters
PointMatcher< T >::Vector calculateAngles(const Matrix &points, const Eigen::Matrix< T, 3, 1 > &) const
Definition: Gestalt.cpp:598
PointMatcher< T >::Vector serializeGestaltMatrix(const Matrix &gestaltFeatures) const
Definition: Gestalt.cpp:583
PointMatcher< T >::Vector calculateRadii(const Matrix &points, const Eigen::Matrix< T, 3, 1 > &) const
Definition: Gestalt.cpp:616
static const std::string description()
Definition: Gestalt.h:55
const bool keepEigenVectors
Definition: Gestalt.h:92
void pybindGestalt(py::module &p_module)
Definition: gestalt.cpp:9
Gestalt descriptors filter as described in Bosse & Zlot ICRA 2013.
Definition: Gestalt.h:41
const bool keepMeans
Definition: Gestalt.h:88
const unsigned knn
Definition: Gestalt.h:82
PM::DataPointsFilter DataPointsFilter
virtual void inPlaceFilter(DataPoints &cloud)
Definition: Gestalt.cpp:88


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