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_
BaseOption.hpp
gs_reconstruction::Options::getBasicSteps
int getBasicSteps() const
Definition: OptionsGS.cpp:51
gs_reconstruction::Options::m_allowMiss
int m_allowMiss
Definition: OptionsGS.hpp:113
gs_reconstruction::Options::m_decreaseFactor
float m_decreaseFactor
Definition: OptionsGS.hpp:112
gs_reconstruction::Options
Definition: OptionsGS.hpp:55
lvr2::operator<<
std::ostream & operator<<(std::ostream &os, const BaseVector< T > &v)
Definition: BaseVector.hpp:227
gs_reconstruction::Options::isInterior
bool isInterior() const
Definition: OptionsGS.cpp:95
gs_reconstruction::Options::m_numSplits
int m_numSplits
Definition: OptionsGS.hpp:107
gs_reconstruction::Options::getNeighborLearningRate
float getNeighborLearningRate() const
Definition: OptionsGS.cpp:71
gs_reconstruction::Options::m_interior
bool m_interior
Definition: OptionsGS.hpp:117
gs_reconstruction::Options::getNumBalances
int getNumBalances() const
Definition: OptionsGS.cpp:99
gs_reconstruction::Options::getWithCollapse
bool getWithCollapse() const
Definition: OptionsGS.cpp:63
gs_reconstruction::Options::m_kn
int m_kn
The number of neighbors for normal estimation.
Definition: OptionsGS.hpp:123
gs_reconstruction::Options::getBoxFactor
float getBoxFactor() const
Definition: OptionsGS.cpp:59
gs_reconstruction
Definition: OptionsGS.cpp:12
gs_reconstruction::Options::getDeleteLongEdgesFactor
int getDeleteLongEdgesFactor() const
Definition: OptionsGS.cpp:91
lvr2::BaseOption
Definition: BaseOption.hpp:48
gs_reconstruction::Options::m_collapseThreshold
float m_collapseThreshold
Definition: OptionsGS.hpp:114
gs_reconstruction::Options::m_withCollapse
bool m_withCollapse
Definition: OptionsGS.hpp:109
gs_reconstruction::Options::isFilterChain
bool isFilterChain() const
Definition: OptionsGS.cpp:87
gs_reconstruction::Options::getKi
int getKi() const
Definition: OptionsGS.cpp:133
gs_reconstruction::Options::getRuntime
int getRuntime() const
Definition: OptionsGS.cpp:47
gs_reconstruction::Options::m_basicSteps
int m_basicSteps
Definition: OptionsGS.hpp:106
gs_reconstruction::Options::getAllowMiss
int getAllowMiss() const
Definition: OptionsGS.cpp:79
gs_reconstruction::Options::m_pcm
string m_pcm
The used point cloud manager.
Definition: OptionsGS.hpp:129
gs_reconstruction::Options::getKn
int getKn() const
Definition: OptionsGS.cpp:129
gs_reconstruction::Options::m_boxFactor
float m_boxFactor
Definition: OptionsGS.hpp:108
gs_reconstruction::Options::getLearningRate
float getLearningRate() const
Definition: OptionsGS.cpp:67
gs_reconstruction::Options::getKd
int getKd() const
Definition: OptionsGS.cpp:125
gs_reconstruction::Options::m_balances
int m_balances
Definition: OptionsGS.hpp:118
gs_reconstruction::Options::getNumSplits
int getNumSplits() const
Definition: OptionsGS.cpp:55
gs_reconstruction::Options::m_deleteLongEdgesFactor
int m_deleteLongEdgesFactor
Definition: OptionsGS.hpp:116
gs_reconstruction::Options::getDecreaseFactor
float getDecreaseFactor() const
Definition: OptionsGS.cpp:75
gs_reconstruction::Options::m_kd
int m_kd
The number of neighbors for distance function evaluation.
Definition: OptionsGS.hpp:120
argc
int argc
Definition: tests_high_five_parallel.cpp:27
gs_reconstruction::Options::getInputFileName
string getInputFileName() const
Definition: OptionsGS.cpp:43
lvr2
Definition: BaseBufferManipulators.hpp:39
gs_reconstruction::Options::m_filterChain
bool m_filterChain
Definition: OptionsGS.hpp:115
gs_reconstruction::Options::m_ki
int m_ki
The number of neighbors for normal interpolation.
Definition: OptionsGS.hpp:126
gs_reconstruction::Options::getCollapseThreshold
float getCollapseThreshold() const
Definition: OptionsGS.cpp:83
gs_reconstruction::Options::m_learningRate
float m_learningRate
Definition: OptionsGS.hpp:110
gs_reconstruction::Options::getPcm
string getPcm() const
Definition: OptionsGS.cpp:137
gs_reconstruction::Options::m_runtime
int m_runtime
Definition: OptionsGS.hpp:105
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28
gs_reconstruction::Options::m_neighborLearningRate
float m_neighborLearningRate
Definition: OptionsGS.hpp:111


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