covariance_sampling.cpp
Go to the documentation of this file.
1 #include "covariance_sampling.h"
2 
4 
5 namespace python
6 {
7  namespace datapointsfilters
8  {
9  void pybindCovarianceSampling(py::module& p_module)
10  {
12  py::class_<CovarianceSamplingDataPointsFilter, std::shared_ptr<CovarianceSamplingDataPointsFilter>, DataPointsFilter> cosamplingClass(p_module, "CovarianceSamplingDataPointsFilter");
13 
15  py::enum_<TorqueNormMethod>(cosamplingClass, "TorqueNormMethod").value("L1", TorqueNormMethod::L1)
16  .value("Lavg", TorqueNormMethod::Lavg).value("Lmax", TorqueNormMethod::Lmax).export_values();
17 
18  cosamplingClass.def_static("description", &CovarianceSamplingDataPointsFilter::description)
19  .def_static("availableParameters", &CovarianceSamplingDataPointsFilter::availableParameters)
20  .def_static("computeConditionNumber", &CovarianceSamplingDataPointsFilter::computeConditionNumber, py::arg("cov"))
21 
22  .def_readwrite("nbSample", &CovarianceSamplingDataPointsFilter::nbSample)
23  .def_readonly("normalizationMethod", &CovarianceSamplingDataPointsFilter::normalizationMethod)
24 
25  .def(py::init<const Parameters&>(), py::arg("params") = Parameters(), "Constructor, uses parameter interface")
26 
27  .def("filter", &CovarianceSamplingDataPointsFilter::filter, py::arg("input"))
28  .def("inPlaceFilter", &CovarianceSamplingDataPointsFilter::inPlaceFilter, py::arg("cloud"));
29  }
30  }
31 }
static T computeConditionNumber(const Matrix66 &cov)
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
static const ParametersDoc availableParameters()
static const std::string description()
PM::Parameters Parameters
PM::DataPointsFilter DataPointsFilter
void pybindCovarianceSampling(py::module &p_module)


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