max_density.cpp
Go to the documentation of this file.
1 #include "max_density.h"
2 
4 
5 namespace python
6 {
7  namespace datapointsfilters
8  {
9  void pybindMaxDensity(py::module& p_module)
10  {
12  py::class_<MaxDensityDataPointsFilter, std::shared_ptr<MaxDensityDataPointsFilter>, DataPointsFilter>(p_module, "MaxDensityDataPointsFilter")
13  .def_static("description", &MaxDensityDataPointsFilter::description)
14  .def_static("availableParameters", &MaxDensityDataPointsFilter::availableParameters)
15 
16  .def_readonly("maxDensity", &MaxDensityDataPointsFilter::maxDensity)
17 
18  .def(py::init<const Parameters&>(), py::arg("params") = Parameters(), "Constructor, uses parameter interface")
19 
20  .def("filter", &MaxDensityDataPointsFilter::filter)
21  .def("inPlaceFilter", &MaxDensityDataPointsFilter::inPlaceFilter);
22  }
23  }
24 }
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
Definition: MaxDensity.cpp:49
static const std::string description()
Definition: MaxDensity.h:53
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Definition: MaxDensity.cpp:59
PM::Parameters Parameters
static const ParametersDoc availableParameters()
Definition: MaxDensity.h:57
void pybindMaxDensity(py::module &p_module)
Definition: max_density.cpp:9
Subsampling. Reduce the points number by randomly removing points with a dentsity higher than a tresh...
Definition: MaxDensity.h:41
PM::DataPointsFilter DataPointsFilter


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