OptionsGS.hpp
Go to the documentation of this file.
1 
28 /*
29  * OptionsGSS.hpp
30  *
31  * Created on: Feb 09, 2019
32  * Author: Patrick Hoffmann
33  */
34 #ifndef OPTIONSGS_H_
35 #define OPTIONSGS_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 using namespace lvr2;
51 
52 namespace gs_reconstruction
53 {
54 
55 class Options : public BaseOption
56 {
57  public:
58  Options(int argc, char** argv);
59  virtual ~Options();
60 
61  int getRuntime() const;
62 
63  int getBasicSteps() const;
64 
65  int getNumSplits() const;
66 
67  float getBoxFactor() const;
68 
69  bool getWithCollapse() const;
70 
71  float getLearningRate() const;
72 
73  float getNeighborLearningRate() const;
74 
75  float getDecreaseFactor() const;
76 
77  int getAllowMiss() const;
78 
79  float getCollapseThreshold() const;
80 
81  bool isFilterChain() const;
82 
83  int getDeleteLongEdgesFactor() const;
84 
85  bool isInterior() const;
86 
87  int getNumBalances() const;
88 
89  string getInputFileName() const;
90 
91  /*
92  * prints information about needed command-line-inputs e.g: input-file (ply)
93  */
94  bool printUsage() const;
95 
96  int getKd() const;
97 
98  int getKn() const;
99 
100  int getKi() const;
101 
102  string getPcm() const;
103 
104  private:
108  float m_boxFactor;
120  int m_kd;
121 
123  int m_kn;
124 
126  int m_ki;
127 
129  string m_pcm;
130 };
131 
133 inline ostream& operator<<(ostream& os, const Options& o)
134 {
135  // o.printTransformation(os);
136 
137  cout << "##### InputFile-Name: " << o.getInputFileName() << endl;
138  cout << "##### Runtime: " << o.getRuntime() << endl;
139  cout << "##### BasicSteps: " << o.getBasicSteps() << endl;
140  cout << "##### NumSplits: " << o.getNumSplits() << endl;
141  cout << "##### BoxFactor: " << o.getBoxFactor() << endl;
142  cout << "#### WithCollapse: " << o.getWithCollapse() << endl;
143  cout << "##### LearningRate: " << o.getLearningRate() << endl;
144  cout << "##### NeighbourLearningRate: " << o.getNeighborLearningRate() << endl;
145  cout << "##### DecreaseFactor: " << o.getDecreaseFactor() << endl;
146  cout << "##### AllowMiss: " << o.getAllowMiss() << endl;
147  cout << "##### CollapseThreshold: " << o.getCollapseThreshold() << endl;
148  cout << "##### FilterChain: " << o.isFilterChain() << endl;
149  cout << "##### DeleteLongEdgesFactor: " << o.getDeleteLongEdgesFactor() << endl;
150  cout << "##### Interior: " << o.isInterior() << endl;
151  cout << "##### Balances: " << o.getNumBalances() << endl;
152  cout << "##### PCM: " << o.getPcm() << endl;
153  cout << "##### KD: " << o.getKd() << endl;
154  cout << "##### KI: " << o.getKi() << endl;
155  cout << "##### KN: " << o.getKn() << endl;
156 
157  return os;
158 }
159 } // namespace gs_reconstruction
160 
161 #endif // OPTIONSGS_H_
std::ostream & operator<<(std::ostream &os, const BaseVector< T > &v)
Definition: BaseVector.hpp:227
float getNeighborLearningRate() const
Definition: OptionsGS.cpp:71
int m_kn
The number of neighbors for normal estimation.
Definition: OptionsGS.hpp:123
bool getWithCollapse() const
Definition: OptionsGS.cpp:63
bool isFilterChain() const
Definition: OptionsGS.cpp:87
float getBoxFactor() const
Definition: OptionsGS.cpp:59
int getDeleteLongEdgesFactor() const
Definition: OptionsGS.cpp:91
string m_pcm
The used point cloud manager.
Definition: OptionsGS.hpp:129
float getLearningRate() const
Definition: OptionsGS.cpp:67
int m_ki
The number of neighbors for normal interpolation.
Definition: OptionsGS.hpp:126
float getDecreaseFactor() const
Definition: OptionsGS.cpp:75
float getCollapseThreshold() const
Definition: OptionsGS.cpp:83
int m_kd
The number of neighbors for distance function evaluation.
Definition: OptionsGS.hpp:120
string getInputFileName() const
Definition: OptionsGS.cpp:43
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