MeshLib C++ Docs
Loading...
Searching...
No Matches
MRGlobalRegistration.h File Reference
#include "MRMeshFwd.h"
#include "MRExpected.h"
#include "MRAffineXf3.h"
#include "MRMeshOrPoints.h"
#include "MRVector.h"
#include <cstdint>

Go to the source code of this file.

Classes

struct  MR::GlobalRegistrationParams
struct  MR::GlobalRegistrationResult

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).

Functions

Expected< GlobalRegistrationResult > MR::globalRegistration (const Vector< MeshOrPointsXf, ObjId > &objects, const GlobalRegistrationParams &params={}, const ProgressCallback &progress={})
 Finds the transformations registering given objects (meshes or point clouds with normals) as one or several groups without any initial alignment: each pair of objects is aligned by matching FPFH descriptors of their samples (see computeFPFH), finding the rigid transformation by findRigidXfRansac with overlap scoring and refining it by ICP; then the objects are linked by a spanning tree of the pairs with the largest overlap (at least params.minOverlap)