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 }
cuda_normals::Options::m_kn
int m_kn
Definition: src/tools/lvr2_cuda_normals/Options.hpp:149
cuda_normals::Options::m_voxelsize
float m_voxelsize
Definition: src/tools/lvr2_cuda_normals/Options.hpp:152
cuda_normals::Options::m_flipy
float m_flipy
Definition: src/tools/lvr2_cuda_normals/Options.hpp:147
Options.hpp
cuda_normals::Options::m_flipx
float m_flipx
Definition: src/tools/lvr2_cuda_normals/Options.hpp:146
options
const kaboom::Options * options
Definition: src/tools/lvr2_kaboom/Main.cpp:45
cuda_normals::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_cuda_normals/Options.hpp:138
cuda_normals::Options::~Options
virtual ~Options()
Definition: src/tools/lvr2_cuda_normals/Options.cpp:71
cuda_normals::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition: src/tools/lvr2_cuda_normals/Options.hpp:144
cuda_normals::Options::Options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
Definition: src/tools/lvr2_cuda_normals/Options.cpp:33
argc
int argc
Definition: tests_high_five_parallel.cpp:27
cuda_normals::Options::m_outputFile
string m_outputFile
Definition: src/tools/lvr2_cuda_normals/Options.hpp:153
cuda_normals::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_cuda_normals/Options.hpp:141
cuda_normals::Options::m_ki
int m_ki
Definition: src/tools/lvr2_cuda_normals/Options.hpp:150
cuda_normals::Options::m_kd
int m_kd
Definition: src/tools/lvr2_cuda_normals/Options.hpp:151
cuda_normals::Options::m_flipz
float m_flipz
Definition: src/tools/lvr2_cuda_normals/Options.hpp:148
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28
cuda_normals
Definition: src/tools/lvr2_cuda_normals/Options.cpp:30


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 Wed Mar 2 2022 00:37:24