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

Function printStats

examples/cpp-examples/GlobalRegistration.dox.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <iostream>
8
9void printStats( const MR::MultiwayICP& icp )
10{
11 std::cout << "Samples: " << icp.getNumSamples() << std::endl
12 << "Active point pairs: " << icp.getNumActivePairs() << std::endl;
13 if ( icp.getNumActivePairs() > 0 )
14 {
15 const auto p2ptMetric = icp.getMeanSqDistToPoint();
16 const auto p2plMetric = icp.getMeanSqDistToPlane();
17 std::cout << "RMS point-to-point distance: " << p2ptMetric << " ± " << icp.getMeanSqDistToPoint( p2ptMetric ) << std::endl
18 << "RMS point-to-plane distance: " << p2plMetric << " ± " << icp.getMeanSqDistToPlane( p2plMetric ) << std::endl;
19 }
20}
21
22int main( int argc, char* argv[] )
23{

Callers 1

mainFunction · 0.70

Calls 4

getNumSamplesMethod · 0.45
getNumActivePairsMethod · 0.45
getMeanSqDistToPointMethod · 0.45
getMeanSqDistToPlaneMethod · 0.45

Tested by

no test coverage detected