Function mapping_algorithms::icp::double_precision::icp_2d
source · pub fn icp_2d(
points_a: &[Point<f64, 2>],
points_b: &[Point<f64, 2>],
config: ICPConfiguration<f64>,
) -> Result<ICPSuccess<f64, UnitComplex<f64>, 2>, &'static str>
Expand description
An ICP algorithm in 2D space.
§Arguments
points_a
: A slice ofPoint
, representing the source point cloud.points_b
: A slice ofPoint
, representing the target point cloud.config
: a reference to anICPConfiguration
, specifying the behaviour of the algorithm.
§Returns
An ICPSuccess
struct with an Isometry
transform with an f64
precision, or an error message explaining what went wrong.
This does not guarantee that the transformation is correct, only that no further benefit can be gained by running another iteration. ↩