MeshLib Rust Docs
Loading...
Searching...
No Matches
MRRigidXfRansac.rs File Reference

Classes

struct  meshlib::RigidXfRansacParams

Namespaces

namespace  meshlib

Functions

auto meshlib::count_inliers (srcPoints:&meshlib::VertCoords, tgtPoints:&meshlib::VertCoords, matches:&meshlib::std_vector_std_pair_MR_VertId_MR_VertId, xf:&meshlib::AffineXf3f, inlierDistance:f32) -> usize
auto meshlib::find_rigid_xf_ransac (srcPoints:&meshlib::VertCoords, tgtPoints:&meshlib::VertCoords, matches:&meshlib::std_vector_std_pair_MR_VertId_MR_VertId, params:&meshlib::RigidXfRansacParams, progress:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_AffineXf3f_std_string >
 Finds the rigid transformation of source points to target points from given matches, many of which can be wrong: tests the transformations through random samples of three matches and keeps the one with most inliers (or the largest overlap, see RigidXfRansacParams::overlapSrcPoints), then refines it by least squares fitting on all its inlier matches.