random_sampling.cpp
Go to the documentation of this file.
1 #include "random_sampling.h"
2 
4 
5 namespace python
6 {
7  namespace datapointsfilters
8  {
9  void pybindRandomSampling(py::module& p_module)
10  {
12  py::class_<RandomSamplingDataPointsFilter, std::shared_ptr<RandomSamplingDataPointsFilter>, DataPointsFilter>(p_module, "RandomSamplingDataPointsFilter", "Random sampling")
13 
14  .def_static("description", &RandomSamplingDataPointsFilter::description)
15  .def_static("availableParameters", &RandomSamplingDataPointsFilter::availableParameters)
16 
17  .def_readonly("prob", &RandomSamplingDataPointsFilter::prob)
18  .def_readonly("seed", &RandomSamplingDataPointsFilter::seed)
19 
20  .def(py::init<const Parameters&>(), py::arg("params") = Parameters(), "Constructor, uses parameter interface")
21 
23  .def("inPlaceFilter", &RandomSamplingDataPointsFilter::inPlaceFilter);
24  }
25  }
26 }
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
PM::Parameters Parameters
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
static const ParametersDoc availableParameters()
void pybindRandomSampling(py::module &p_module)
PM::DataPointsFilter DataPointsFilter
static const std::string description()


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