MeshLib C++ Docs
Loading...
Searching...
No Matches
MRGlobalRegistration.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRExpected.h"
5#include "MRAffineXf3.h"
6#include "MRMeshOrPoints.h"
7#include "MRVector.h"
8#include <cstdint>
9
10namespace MR
11{
14
15
17{
21
24 float minOverlap = 0.1f;
25
27 int pairAttempts = 3;
28
30 std::uint32_t seed = 0;
31};
32
42
49 const GlobalRegistrationParams & params = {}, const ProgressCallback & progress = {} );
50
51}
#define MRMESH_API
Definition MRMeshFwd.h:85
Vector<T> is indexed by size_t.
Definition MRVector.h:24
Expected< GlobalRegistrationResult > 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 s...
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:790
std::uint32_t seed
the seed of the first RANSAC run, see RigidXfRansacParams::seed
Definition MRGlobalRegistration.h:30
int pairAttempts
the number of RANSAC runs with different seeds for each pair of objects (at least 1),...
Definition MRGlobalRegistration.h:27
tl::expected< T, E > Expected
Definition MRExpected.h:31
float samplingVoxelSize
Definition MRGlobalRegistration.h:20
Vector< AffineXf3f, ObjId > xfs
new transformation of each object to world space
Definition MRGlobalRegistration.h:36
float minOverlap
Definition MRGlobalRegistration.h:24
Vector< ObjId, ObjId > groupRoots
Definition MRGlobalRegistration.h:40
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRGlobalRegistration.h:17
Definition MRGlobalRegistration.h:34