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 }
DataPointsFilter
PM::DataPointsFilter DataPointsFilter
Definition: pypoint_matcher_helper.h:22
MaxDensityDataPointsFilter::availableParameters
static const ParametersDoc availableParameters()
Definition: MaxDensity.h:57
Parameters
PM::Parameters Parameters
Definition: filterProfiler.cpp:20
python::datapointsfilters::pybindMaxDensity
void pybindMaxDensity(py::module &p_module)
Definition: max_density.cpp:9
max_density.h
MaxDensityDataPointsFilter::filter
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
MaxDensity.h
python
Definition: add_descriptor.cpp:5
MaxDensityDataPointsFilter::description
static const std::string description()
Definition: MaxDensity.h:53
MaxDensityDataPointsFilter::inPlaceFilter
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Definition: MaxDensity.cpp:59
MaxDensityDataPointsFilter
Subsampling. Reduce the points number by randomly removing points with a dentsity higher than a tresh...
Definition: MaxDensity.h:41
MaxDensityDataPointsFilter::maxDensity
const T maxDensity
Definition: MaxDensity.h:64


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