transformations_impl.cpp
Go to the documentation of this file.
1 #include "transformations_impl.h"
2 
4 
5 namespace python
6 {
7  namespace pointmatcher
8  {
9  namespace impls
10  {
11  void pybindTransformationsImpl(py::module& p_module)
12  {
14  py::class_<TransformationsImpl, std::shared_ptr<TransformationsImpl>> pyTransformationImpl(p_module, "TransformationsImpl");
15 
16  using RigidTransformation = TransformationsImpl::RigidTransformation;
17  py::class_<RigidTransformation, std::shared_ptr<RigidTransformation>, Transformation>(pyTransformationImpl, "RigidTransformation")
18  .def_static("description", &RigidTransformation::description)
19 
20  .def(py::init<>())
21  .def("compute", &RigidTransformation::compute, py::arg("input"), py::arg("parameters"))
22  .def("checkParameters", &RigidTransformation::checkParameters, py::arg("parameters"))
23  .def("correctParameters", &RigidTransformation::correctParameters, py::arg("parameters"));
24 
25  using SimilarityTransformation = TransformationsImpl::SimilarityTransformation;
26  py::class_<SimilarityTransformation, std::shared_ptr<SimilarityTransformation>, Transformation>(pyTransformationImpl, "SimilarityTransformation")
27  .def_static("description", &SimilarityTransformation::description)
28 
29  .def(py::init<>())
30  .def("compute", &SimilarityTransformation::compute, py::arg("input"), py::arg("parameters"))
31  .def("checkParameters", &SimilarityTransformation::checkParameters, py::arg("parameters"))
32  .def("correctParameters", &SimilarityTransformation::correctParameters, py::arg("parameters"));
33 
34  using PureTranslation = TransformationsImpl::PureTranslation;
35  py::class_<PureTranslation, std::shared_ptr<PureTranslation>, Transformation>(pyTransformationImpl, "PureTranslation")
36  .def_static("description", &PureTranslation::description)
37 
38  .def(py::init<>())
39  .def("compute", &PureTranslation::compute, py::arg("input"), py::arg("parameters"))
40  .def("checkParameters", &PureTranslation::checkParameters, py::arg("parameters"))
41  .def("correctParameters", &PureTranslation::correctParameters, py::arg("parameters"));
42  }
43  }
44  }
45 }
TransformationsImpl
Definition: TransformationsImpl.h:42
transformations_impl.h
PointMatcher::Transformation
A function that transforms points and their descriptors given a transformation matrix.
Definition: PointMatcher.h:404
TransformationsImpl::PureTranslation
Definition: TransformationsImpl.h:82
python
Definition: add_descriptor.cpp:5
python::pointmatcher::impls::pybindTransformationsImpl
void pybindTransformationsImpl(py::module &p_module)
Definition: transformations_impl.cpp:11
TransformationsImpl::SimilarityTransformation
Definition: TransformationsImpl.h:68
TransformationsImpl::RigidTransformation
Definition: TransformationsImpl.h:54
TransformationsImpl.h


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