MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / main

Function main

examples/cpp-samples/GlobalRegistration.cpp:3–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <MRMesh/MRMultiwayICP.h>
2
3int main( int argc, char* argv[] )
4{
5 MR::ICPObjects objects;
6
7//! [0]
8 MR::MultiwayICP icp( objects, {
9 // set sampling voxel size
10 .samplingVoxelSize = 1e-3f,
11 } );
12
13 icp.setParams( {} );
14
15 // gather statistics
16 icp.updateAllPointPairs();
17
18 // compute new transformations
19 auto xfs = icp.calculateTransformations();
20
21 for ( auto i = MR::ObjId( 0 ); i < objects.size(); ++i )
22 objects[i].xf = xfs[i];
23//! [0]
24
25 return EXIT_SUCCESS;
26}

Callers

nothing calls this directly

Calls 4

updateAllPointPairsMethod · 0.80
setParamsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected