src/tools/lvr2_cuda_normals/Options.cpp
Go to the documentation of this file.
1 
28 #include "Options.hpp"
29 
30 namespace cuda_normals
31 {
32 
33 Options::Options(int argc, char** argv) : m_descr("Supported options")
34 {
35 
36  // Create option descriptions
37 
38  m_descr.add_options()
39  ("help", "Produce help message")
40  ("inputFile", value< vector<string> >(), "Input file name. ")
41  ("outputFile,o", value<string>(&m_outputFile)->default_value("normals.ply"), "Output file name.")
42  ("ransac", "Set this flag for RANSAC based normal estimation.")
43  ("pca", "Set this flag for RANSAC based normal estimation.")
44  ("kn", value<int>(&m_kn)->default_value(10), "Number of normals used for normal estimation")
45  ("ki", value<int>(&m_ki)->default_value(10), "Number of normals used for normal interpolation")
46  ("kd", value<int>(&m_kd)->default_value(5), "Number of normals used for distance calculation")
47  ("flipx", value<float>(&m_flipx)->default_value(100000.0), "Flippoint x" )
48  ("flipy", value<float>(&m_flipy)->default_value(100000.0), "Flippoint y" )
49  ("flipz", value<float>(&m_flipz)->default_value(100000.0), "Flippoint z" )
50  ("reconstruct,r","Reconstruct after normal calculation")
51  ("exportPointNormals,e","save Pointnormals before reconstruction")
52  ("voxelsize,v",value<float>(&m_voxelsize)->default_value(10.0),"voxelsize for marching cubes")
53  ;
54 
55  m_pdescr.add("inputFile", -1);
56 
57  // Parse command line and generate variables map
58  store(command_line_parser(argc, argv).options(m_descr).positional(m_pdescr).run(), m_variables);
59  notify(m_variables);
60 
61  if(m_variables.count("help"))
62  {
63  ::std::cout << m_descr << ::std::endl;
64  exit(-1);
65  }
66 
67 }
68 
69 
70 
72 {
73  // TODO Auto-generated destructor stub
74 }
75 
76 }
positional_options_description m_pdescr
The internally used positional option desription.
const kaboom::Options * options
variables_map m_variables
The internally used variable map.
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
options_description m_descr
The internally used option description.
char ** argv


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08