point_to_point.cpp
Go to the documentation of this file.
1 #include "point_to_point.h"
2 
4 
5 namespace python
6 {
7  namespace errorminimizers
8  {
9  void pybindPointToPoint(py::module& p_module)
10  {
12  py::class_<PointToPointErrorMinimizer, std::shared_ptr<PointToPointErrorMinimizer>, ErrorMinimizer>(p_module, "PointToPointErrorMinimizer")
13  .def(py::init<>())
14  .def(py::init<const std::string&, const ParametersDoc, const Parameters&>(), py::arg("className"), py::arg("paramsDoc"), py::arg("params"))
15  .def("compute", &PointToPointErrorMinimizer::compute, py::arg("mPts"))
16  .def("compute_in_place", &PointToPointErrorMinimizer::compute_in_place, py::arg("mPts"))
17  .def("getResidualError", &PointToPointErrorMinimizer::getResidualError, py::arg("filteredReading"), py::arg("filteredReference"), py::arg("outlierWeights"), py::arg("matches"))
18  .def("getOverlap", &PointToPointErrorMinimizer::getOverlap)
19  .def_static("computeResidualError", &PointToPointErrorMinimizer::computeResidualError, py::arg("mPts"));
20  }
21  }
22 }
PointToPointErrorMinimizer::compute
virtual TransformationParameters compute(const ErrorElements &mPts)
Find the transformation that minimizes the error given matched pair of points. This function most be ...
Definition: PointToPoint.cpp:55
PointToPointErrorMinimizer::getOverlap
virtual T getOverlap() const
If not redefined by child class, return the ratio of how many points were used (with weight) for erro...
Definition: PointToPoint.cpp:119
PointToPointErrorMinimizer::getResidualError
virtual T getResidualError(const DataPoints &filteredReading, const DataPoints &filteredReference, const OutlierWeights &outlierWeights, const Matches &matches) const
If not redefined by child class, return max value for T.
Definition: PointToPoint.cpp:104
ErrorMinimizersImpl.h
point_to_point.h
PointToPointErrorMinimizer::computeResidualError
static T computeResidualError(const ErrorElements &mPts)
Definition: PointToPoint.cpp:155
python
Definition: add_descriptor.cpp:5
python::errorminimizers::pybindPointToPoint
void pybindPointToPoint(py::module &p_module)
Definition: point_to_point.cpp:9
ErrorMinimizersImpl::PointToPointErrorMinimizer
::PointToPointErrorMinimizer< T > PointToPointErrorMinimizer
Definition: ErrorMinimizersImpl.h:52
PointMatcher::ErrorMinimizer
An error minimizer will compute a transformation matrix such as to minimize the error between the rea...
Definition: PointMatcher.h:531
PointToPointErrorMinimizer::compute_in_place
TransformationParameters compute_in_place(ErrorElements &mPts)
Definition: PointToPoint.cpp:62
PointToPointErrorMinimizer
Definition: PointToPoint.h:42


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