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 }
CovarianceSamplingDataPointsFilter::normalizationMethod
TorqueNormMethod normalizationMethod
Definition: CovarianceSampling.h:81
DataPointsFilter
PM::DataPointsFilter DataPointsFilter
Definition: pypoint_matcher_helper.h:22
covariance_sampling.h
CovarianceSamplingDataPointsFilter::filter
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy.
Definition: CovarianceSampling.cpp:66
Parameters
PM::Parameters Parameters
Definition: filterProfiler.cpp:20
CovarianceSamplingDataPointsFilter::description
static const std::string description()
Definition: CovarianceSampling.h:65
CovarianceSamplingDataPointsFilter::inPlaceFilter
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Definition: CovarianceSampling.cpp:74
CovarianceSamplingDataPointsFilter::nbSample
std::size_t nbSample
Definition: CovarianceSampling.h:80
python
Definition: add_descriptor.cpp:5
python::datapointsfilters::pybindCovarianceSampling
void pybindCovarianceSampling(py::module &p_module)
Definition: covariance_sampling.cpp:9
CovarianceSamplingDataPointsFilter
Definition: CovarianceSampling.h:40
CovarianceSamplingDataPointsFilter::availableParameters
static const ParametersDoc availableParameters()
Definition: CovarianceSampling.h:70
CovarianceSamplingDataPointsFilter::computeConditionNumber
static T computeConditionNumber(const Matrix66 &cov)
Definition: CovarianceSampling.cpp:255
CovarianceSampling.h
CovarianceSamplingDataPointsFilter::TorqueNormMethod
TorqueNormMethod
Definition: CovarianceSampling.h:78


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