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 
image_normals::Options::m_minH
int m_minH
Definition: src/tools/lvr2_image_normals/Options.hpp:158
image_normals::Options::m_imageOut
string m_imageOut
Definition: src/tools/lvr2_image_normals/Options.hpp:170
image_normals::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_image_normals/Options.hpp:153
image_normals::Options::m_maxV
int m_maxV
Definition: src/tools/lvr2_image_normals/Options.hpp:161
image_normals::Options::m_system
string m_system
Definition: src/tools/lvr2_image_normals/Options.hpp:171
image_normals
Definition: src/tools/lvr2_image_normals/Options.cpp:30
Options.hpp
image_normals::Options::m_maxZ
float m_maxZ
Definition: src/tools/lvr2_image_normals/Options.hpp:167
options
const kaboom::Options * options
Definition: src/tools/lvr2_kaboom/Main.cpp:45
image_normals::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_image_normals/Options.hpp:150
image_normals::Options::~Options
virtual ~Options()
Definition: src/tools/lvr2_image_normals/Options.cpp:74
image_normals::Options::m_maxZimg
float m_maxZimg
Definition: src/tools/lvr2_image_normals/Options.hpp:169
image_normals::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition: src/tools/lvr2_image_normals/Options.hpp:156
argc
int argc
Definition: tests_high_five_parallel.cpp:27
image_normals::Options::m_maxH
int m_maxH
Definition: src/tools/lvr2_image_normals/Options.hpp:159
image_normals::Options::m_minZ
float m_minZ
Definition: src/tools/lvr2_image_normals/Options.hpp:166
image_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_image_normals/Options.cpp:33
image_normals::Options::m_minV
int m_minV
Definition: src/tools/lvr2_image_normals/Options.hpp:160
image_normals::Options::m_height
int m_height
Definition: src/tools/lvr2_image_normals/Options.hpp:163
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28
image_normals::Options::m_width
int m_width
Definition: src/tools/lvr2_image_normals/Options.hpp:162


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