python
datapointsfilters
random_sampling.cpp
Go to the documentation of this file.
1
#include "
random_sampling.h
"
2
3
#include "
DataPointsFilters/RandomSampling.h
"
4
5
namespace
python
6
{
7
namespace
datapointsfilters
8
{
9
void
pybindRandomSampling
(py::module& p_module)
10
{
11
using
RandomSamplingDataPointsFilter
=
RandomSamplingDataPointsFilter<ScalarType>
;
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
22
.def(
"filter"
, &
RandomSamplingDataPointsFilter::filter
)
23
.def(
"inPlaceFilter"
, &
RandomSamplingDataPointsFilter::inPlaceFilter
);
24
}
25
}
26
}
DataPointsFilter
PM::DataPointsFilter DataPointsFilter
Definition:
pypoint_matcher_helper.h:22
python::datapointsfilters::pybindRandomSampling
void pybindRandomSampling(py::module &p_module)
Definition:
random_sampling.cpp:9
RandomSamplingDataPointsFilter::seed
const int seed
Definition:
RandomSampling.h:69
Parameters
PM::Parameters Parameters
Definition:
filterProfiler.cpp:20
RandomSampling.h
RandomSamplingDataPointsFilter::inPlaceFilter
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Definition:
RandomSampling.cpp:92
RandomSamplingDataPointsFilter::filter
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy.
Definition:
RandomSampling.cpp:53
RandomSamplingDataPointsFilter::availableParameters
static const ParametersDoc availableParameters()
Definition:
RandomSampling.h:58
python
Definition:
add_descriptor.cpp:5
RandomSamplingDataPointsFilter
Random sampling.
Definition:
RandomSampling.h:43
RandomSamplingDataPointsFilter::description
static const std::string description()
Definition:
RandomSampling.h:54
RandomSamplingDataPointsFilter::prob
const double prob
Definition:
RandomSampling.h:67
random_sampling.h
libpointmatcher
Author(s):
autogenerated on Mon Sep 16 2024 02:24:10