src/tools/lvr2_image_normals/Options.cpp
Go to the documentation of this file.
1 
28 #include "Options.hpp"
29 
30 namespace image_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  ("minH", value<int>(&m_minH)->default_value(0), "Minimal horizontal opening angle.")
42  ("maxH", value<int>(&m_maxH)->default_value(360), "Maximal horizontal opening angle.")
43  ("minV", value<int>(&m_minV)->default_value(-90), "Minimal vertical opening angle.")
44  ("maxV", value<int>(&m_maxV)->default_value(90), "Maximal vertical opening angle.")
45  ("minZ", value<float>(&m_minZ)->default_value(0), "Minimal depth value.")
46  ("maxZ", value<float>(&m_maxZ)->default_value(1e6), "Maximal depth value.")
47  ("maxZimg", value<float>(&m_maxZimg)->default_value(1e6), "Maximal depth value in depth image.")
48  ("minZimg", value<float>(&m_maxZimg)->default_value(0), "Maximal depth value in depth image.")
49  ("img", value<string>(&m_imageOut)->default_value("panorama.pgm"), "Output file for projection image.")
50  ("imageWidth,w", value<int>(&m_width)->default_value(2800), "Image width.")
51  ("imageHeight,h", value<int>(&m_height)->default_value(1000), "Image height.")
52  ("regionWidth,i", value<int>(&m_width)->default_value(5), "Width of the nearest neighbor region of a pixel for normal estimation.")
53  ("regionHeight,j", value<int>(&m_height)->default_value(5), "Height of the nearest neighbor region of a pixel for normal estimation.")
54  ("optimize,o", "Optimize image aspect ratio.")
55  ("system,s", value<string>(&m_system)->default_value("NATIVE"), "The coordinate system in which the points are stored. Use NATIVE to interpret the points as they are. Use SLAM6D for scans in 3dtk's coordinate system and UOS for scans that where taken with a tilting laser scanner at Osnabrueck University.")
56  ;
57 
58  m_pdescr.add("inputFile", -1);
59 
60  // Parse command line and generate variables map
61  store(command_line_parser(argc, argv).options(m_descr).positional(m_pdescr).run(), m_variables);
62  notify(m_variables);
63 
64  if(m_variables.count("help"))
65  {
66  ::std::cout << m_descr << ::std::endl;
67  exit(-1);
68  }
69 
70 }
71 
72 
73 
75 {
76  // TODO Auto-generated destructor stub
77 }
78 
79 }
80 
const kaboom::Options * options
positional_options_description m_pdescr
The internally used positional option desription.
options_description m_descr
The internally used option description.
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
variables_map m_variables
The internally used variable map.
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