A set of parameters that stores the result of alignment operation. More...
#include <cvb/foundation/curve.hpp>
Public Member Functions | |
const Matrix2D & | Rotation () const noexcept |
Gets the estimated rotation. More... | |
const Vector2D< double > & | Translation () const noexcept |
Gets the estimated translation. More... | |
double | MeanDistance () const noexcept |
Gets the mean distance between reference and aligned curve. More... | |
size_t | NumIterations () const noexcept |
Gets the number of iterations needed for alignment. More... | |
Friends | |
AlignmentResult2D | AlignCurve (const std::vector< Point2D< double > > &, const std::vector< Point2D< double > > &, const AlignmentConfiguration &) |
Aligns two 2D curves via an iterative closest point method considering consensus correspondence for better shape alignment. More... | |
A set of parameters that stores the result of alignment operation.
|
inlinenoexcept |
Gets the mean distance between reference and aligned curve.
Does | not throw any exception. |
|
inlinenoexcept |
Gets the number of iterations needed for alignment.
Does | not throw any exception. |
|
inlinenoexcept |
Gets the estimated rotation.
Does | not throw any exception. |
|
inlinenoexcept |
Gets the estimated translation.
Does | not throw any exception. |
|
friend |
Aligns two 2D curves via an iterative closest point method considering consensus correspondence for better shape alignment.
[in] | curve | Reference curve. |
[in] | curveToBeAligned | Curve to be aligned to curve. |
[in] | config | Configuration of alignment. |
Any | exception derived from std::exception including CvbException. |
The method used here is a version of the ICP (iterative closest point) method. It uses a consensus metric to find the correspondence between points to stabilize the iterations needed in the alignment method. It supports only rigid transformations for the alignment.
If not enough points within a given consent are found a classical ICP step is performed by finding correspondences solely based on nearest neighbours without any feasibility check.