39 #include "boost/filesystem.hpp" 49 int main(
int argc,
char *argv[])
72 icp.transformations.apply(data_out, T);
75 ref.
save(
"test_ref.vtk");
76 data.
save(
"test_data_in.vtk");
77 data_out.
save(
"test_data_out.vtk");
78 cout <<
"Final transformation:" << endl << T << endl;
87 cerr <<
"Wrong number of arguments, usage " << argv[0] <<
" reference.csv reading.csv" << endl;
88 cerr <<
"Will create 3 vtk files for inspection: ./test_ref.vtk, ./test_data_in.vtk and ./test_data_out.vtk" << endl;
89 cerr << endl <<
"2D Example:" << endl;
90 cerr <<
" " << argv[0] <<
" ../../examples/data/2D_twoBoxes.csv ../../examples/data/2D_oneBox.csv" << endl;
91 cerr << endl <<
"3D Example:" << endl;
92 cerr <<
" " << argv[0] <<
" ../../examples/data/car_cloud400.csv ../../examples/data/car_cloud401.csv" << endl;
void validateArgs(int argc, char *argv[], bool &isCSV)
PM::DataPoints DataPoints
void save(const std::string &fileName, bool binary=false) const
Save a point cloud to a file, determine format from extension.
int main(int argc, char *argv[])
static DataPoints load(const std::string &fileName)
Load a point cloud from a file, determine format from extension.
Matrix TransformationParameters
A matrix holding the parameters a transformation.