bounding_box.cpp
Go to the documentation of this file.
1 #include "bounding_box.h"
2 
4 
5 namespace python
6 {
7  namespace datapointsfilters
8  {
9  void pybindBoundingBox(py::module& p_module)
10  {
12  py::class_<BoundingBoxDataPointsFilter, std::shared_ptr<BoundingBoxDataPointsFilter>, DataPointsFilter>(p_module, "BoundingBoxDataPointsFilter")
13  .def_static("description", &BoundingBoxDataPointsFilter::description)
14  .def_static("availableParameters", &BoundingBoxDataPointsFilter::availableParameters)
15 
16  .def_readonly("xMin", &BoundingBoxDataPointsFilter::xMin)
17  .def_readonly("xMax", &BoundingBoxDataPointsFilter::xMax)
18  .def_readonly("yMin", &BoundingBoxDataPointsFilter::yMin)
19  .def_readonly("yMax", &BoundingBoxDataPointsFilter::yMax)
20  .def_readonly("zMin", &BoundingBoxDataPointsFilter::zMin)
21  .def_readonly("zMax", &BoundingBoxDataPointsFilter::zMax)
22  .def_readonly("removeInside", &BoundingBoxDataPointsFilter::removeInside)
23 
24  .def(py::init<const Parameters&>(), py::arg("params") = Parameters(), "Constructor, uses parameter interface")
25 
26  .def("filter", &BoundingBoxDataPointsFilter::filter, py::arg("input"))
27  .def("inPlaceFilter", &BoundingBoxDataPointsFilter::inPlaceFilter, py::arg("cloud"));
28  }
29  }
30 }
static const ParametersDoc availableParameters()
Definition: BoundingBox.h:57
void pybindBoundingBox(py::module &p_module)
Definition: bounding_box.cpp:9
PM::Parameters Parameters
virtual void inPlaceFilter(DataPoints &cloud)
Apply these filters to a point cloud without copying.
Definition: BoundingBox.cpp:65
virtual DataPoints filter(const DataPoints &input)
Apply filters to input point cloud. This is the non-destructive version and returns a copy...
Definition: BoundingBox.cpp:55
static const std::string description()
Definition: BoundingBox.h:53
PM::DataPointsFilter DataPointsFilter
Subsampling. Remove point laying in a bounding box.
Definition: BoundingBox.h:41


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