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 }
GestaltDataPointsFilter::radius
const T radius
Definition: Gestalt.h:81
GestaltDataPointsFilter::keepGestaltFeatures
const bool keepGestaltFeatures
Definition: Gestalt.h:94
GestaltDataPointsFilter::vSizeY
const T vSizeY
Definition: Gestalt.h:84
GestaltDataPointsFilter::ratio
const T ratio
Definition: Gestalt.h:80
DataPointsFilter
PM::DataPointsFilter DataPointsFilter
Definition: pypoint_matcher_helper.h:22
GestaltDataPointsFilter::availableParameters
static const ParametersDoc availableParameters()
Definition: Gestalt.h:59
GestaltDataPointsFilter::keepCovariances
const bool keepCovariances
Definition: Gestalt.h:93
GestaltDataPointsFilter::calculateRadii
PointMatcher< T >::Vector calculateRadii(const Matrix &points, const Eigen::Matrix< T, 3, 1 > &) const
Definition: Gestalt.cpp:616
Parameters
PM::Parameters Parameters
Definition: filterProfiler.cpp:20
GestaltDataPointsFilter::keepEigenValues
const bool keepEigenValues
Definition: Gestalt.h:91
gestalt.h
GestaltDataPointsFilter
Gestalt descriptors filter as described in Bosse & Zlot ICRA 2013.
Definition: Gestalt.h:41
Gestalt.h
GestaltDataPointsFilter::filter
virtual DataPoints filter(const DataPoints &input)
Definition: Gestalt.cpp:79
GestaltDataPointsFilter::maxTimeWindow
const T maxTimeWindow
Definition: Gestalt.h:87
GestaltDataPointsFilter::serializeGestaltMatrix
PointMatcher< T >::Vector serializeGestaltMatrix(const Matrix &gestaltFeatures) const
Definition: Gestalt.cpp:583
python
Definition: add_descriptor.cpp:5
GestaltDataPointsFilter::keepNormals
const bool keepNormals
Definition: Gestalt.h:90
GestaltDataPointsFilter::averageExistingDescriptors
const bool averageExistingDescriptors
Definition: Gestalt.h:89
GestaltDataPointsFilter::maxBoxDim
const T maxBoxDim
Definition: Gestalt.h:86
GestaltDataPointsFilter::inPlaceFilter
virtual void inPlaceFilter(DataPoints &cloud)
Definition: Gestalt.cpp:88
GestaltDataPointsFilter::calculateAngles
PointMatcher< T >::Vector calculateAngles(const Matrix &points, const Eigen::Matrix< T, 3, 1 > &) const
Definition: Gestalt.cpp:598
GestaltDataPointsFilter::keepMeans
const bool keepMeans
Definition: Gestalt.h:88
GestaltDataPointsFilter::vSizeX
const T vSizeX
Definition: Gestalt.h:83
python::datapointsfilters::pybindGestalt
void pybindGestalt(py::module &p_module)
Definition: gestalt.cpp:9
GestaltDataPointsFilter::knn
const unsigned knn
Definition: Gestalt.h:82
GestaltDataPointsFilter::keepEigenVectors
const bool keepEigenVectors
Definition: Gestalt.h:92
GestaltDataPointsFilter::vSizeZ
const T vSizeZ
Definition: Gestalt.h:85
GestaltDataPointsFilter::description
static const std::string description()
Definition: Gestalt.h:55


libpointmatcher
Author(s):
autogenerated on Mon Sep 16 2024 02:24:08