| 1 | #include <MRMesh/MRMultiwayICP.h> |
| 2 | |
| 3 | int 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 | } |
nothing calls this directly
no test coverage detected