src/tools/lvr2_dmc_reconstruction/Options.hpp
Go to the documentation of this file.
1 
28 /*
29  * OptionsDMC.hpp
30  *
31  * Created on: May 13, 2020
32  * Author: Benedikt SChumacher
33  */
34 #ifndef OPTIONSDMC_H_
35 #define OPTIONSDMC_H_
36 
38 
39 #include <boost/program_options.hpp>
40 #include <float.h>
41 #include <iostream>
42 #include <string>
43 #include <vector>
44 
45 using std::cout;
46 using std::endl;
47 using std::ostream;
48 using std::string;
49 using std::vector;
50 
51 using namespace lvr2;
52 
53 namespace dmc_reconstruction
54 {
55 
56 class Options : public BaseOption
57 {
58  public:
59  Options(int argc, char** argv);
60  virtual ~Options();
61 
62  string getInputFileName() const;
63 
64  int getMaxLevel() const;
65 
66  float getMaxError() const;
67 
68  /*
69  * prints information about needed command-line-inputs e.g: input-file (ply)
70  */
71  bool printUsage() const;
72 
73  int getKd() const;
74 
75  int getKn() const;
76 
77  int getKi() const;
78 
79  int getNumThreads() const;
80 
81  string getPCM() const;
82 
83  bool useRansac() const;
84 
85  string getScanPoseFile() const;
86 
87 
88  private:
91 
93  float m_maxError;
94 
96  int m_kd;
97 
99  int m_kn;
100 
102  int m_ki;
103 
106 
108  string m_pcm;
109 };
110 
112 inline ostream& operator<<(ostream& os, const Options& o)
113 {
114  // o.printTransformation(os);
115 
116  cout << "##### InputFile-Name: " << o.getInputFileName() << endl;
117  cout << "##### Max Level: " << o.getMaxLevel() << endl;
118  cout << "##### Max Error: " << o.getMaxError() << endl;
119 
120  cout << "##### PCM: " << o.getPCM() << endl;
121  cout << "##### KD: " << o.getKd() << endl;
122  cout << "##### KI: " << o.getKi() << endl;
123  cout << "##### KN: " << o.getKn() << endl;
124 
125  return os;
126 }
127 } // namespace dmc_reconstruction
128 
129 #endif // OPTIONSDMC_H_
std::ostream & operator<<(std::ostream &os, const BaseVector< T > &v)
Definition: BaseVector.hpp:227
int m_ki
The number of neighbors for normal interpolation.
int m_kn
The number of neighbors for normal estimation.
int m_maxLevel
The maximum allows octree level.
float m_maxError
The max allowed error between points and surfaces in an octree cell.
int m_kd
The number of neighbors for distance function evaluation.
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