python
errorminimizers
point_to_point_similarity.cpp
Go to the documentation of this file.
1
#include "
point_to_point_similarity.h
"
2
3
#include "
pointmatcher/ErrorMinimizersImpl.h
"
4
5
namespace
python
6
{
7
namespace
errorminimizers
8
{
9
void
pybindPointToPointSimilarity
(py::module& p_module)
10
{
11
using
PointToPointSimilarityErrorMinimizer
=
ErrorMinimizersImpl<ScalarType>::PointToPointSimilarityErrorMinimizer
;
12
py::class_<PointToPointSimilarityErrorMinimizer, std::shared_ptr<PointToPointSimilarityErrorMinimizer>,
ErrorMinimizer
>(p_module,
"PointToPointSimilarityErrorMinimizer"
)
13
.def(py::init<>()).def_static(
"description"
, &
PointToPointSimilarityErrorMinimizer::description
)
14
.def(
"compute"
, &
PointToPointSimilarityErrorMinimizer::compute
, py::arg(
"mPts"
))
15
.def(
"getResidualError"
, &
PointToPointSimilarityErrorMinimizer::getResidualError
, py::arg(
"filteredReading"
), py::arg(
"filteredReference"
), py::arg(
"outlierWeights"
), py::arg(
"matches"
))
16
.def(
"getOverlap"
, &
PointToPointSimilarityErrorMinimizer::getOverlap
);
17
}
18
}
19
}
PointToPointSimilarityErrorMinimizer
Definition:
PointToPointSimilarity.h:42
PointToPointSimilarityErrorMinimizer::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:
PointToPointSimilarity.cpp:101
python::errorminimizers::pybindPointToPointSimilarity
void pybindPointToPointSimilarity(py::module &p_module)
Definition:
point_to_point_similarity.cpp:9
ErrorMinimizersImpl.h
point_to_point_similarity.h
python
Definition:
add_descriptor.cpp:5
PointToPointSimilarityErrorMinimizer::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:
PointToPointSimilarity.cpp:116
ErrorMinimizersImpl::PointToPointSimilarityErrorMinimizer
::PointToPointSimilarityErrorMinimizer< T > PointToPointSimilarityErrorMinimizer
Definition:
ErrorMinimizersImpl.h:54
PointMatcher::ErrorMinimizer
An error minimizer will compute a transformation matrix such as to minimize the error between the rea...
Definition:
PointMatcher.h:531
PointToPointSimilarityErrorMinimizer::compute
virtual TransformationParameters compute(const ErrorElements &mPts)
Find the transformation that minimizes the error given matched pair of points. This function most be ...
Definition:
PointToPointSimilarity.cpp:43
PointToPointSimilarityErrorMinimizer::description
static const std::string description()
Definition:
PointToPointSimilarity.h:53
libpointmatcher
Author(s):
autogenerated on Mon Sep 16 2024 02:24:10