Content
This example shows how to calibrate a sensor.
Boost is only used to generate examples and is not necessary for working with this SDK.
#include <boost/test/unit_test.hpp>
#include <stdio.h>
#include <conio.h>
BOOST_AUTO_TEST_SUITE(example_reconstructmesdk)
BOOST_AUTO_TEST_CASE(calibration) {
puts("Key mapping");
puts("s: capture image of calibration target");
puts("c: perform calibration and exit");
puts("All keys need to be pressed with the command line in the foreground");
puts("Now running in commercial mode");
} else {
puts("Failed to authenticate.");
}
bool continue_grabbing = true;
if (_kbhit()) {
char k = _getch();
switch (k) {
case 's': {
break;
}
case 'c' : {
continue_grabbing = false;
break;
}
}
}
}
float accuracy;
printf("Reprojection error: %f pixels \n", accuracy);
} else {
puts("Calibration failed");
}
}
BOOST_AUTO_TEST_SUITE_END()