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_
BaseOption.hpp
dmc_reconstruction::Options
Definition: src/tools/lvr2_dmc_reconstruction/Options.hpp:56
dmc_reconstruction::Options::getMaxLevel
int getMaxLevel() const
Definition: src/tools/lvr2_dmc_reconstruction/Options.cpp:39
lvr2::operator<<
std::ostream & operator<<(std::ostream &os, const BaseVector< T > &v)
Definition: BaseVector.hpp:227
dmc_reconstruction::Options::getKi
int getKi() const
Definition: src/tools/lvr2_dmc_reconstruction/Options.cpp:73
dmc_reconstruction::Options::getInputFileName
string getInputFileName() const
Definition: src/tools/lvr2_dmc_reconstruction/Options.cpp:35
lvr2::BaseOption
Definition: BaseOption.hpp:48
dmc_reconstruction::Options::m_kd
int m_kd
The number of neighbors for distance function evaluation.
Definition: src/tools/lvr2_dmc_reconstruction/Options.hpp:96
dmc_reconstruction::Options::m_maxLevel
int m_maxLevel
The maximum allows octree level.
Definition: src/tools/lvr2_dmc_reconstruction/Options.hpp:90
dmc_reconstruction
Definition: src/tools/lvr2_dmc_reconstruction/Options.cpp:13
dmc_reconstruction::Options::getPCM
string getPCM() const
Definition: src/tools/lvr2_dmc_reconstruction/Options.cpp:81
dmc_reconstruction::Options::getKd
int getKd() const
Definition: src/tools/lvr2_dmc_reconstruction/Options.cpp:65
dmc_reconstruction::Options::m_kn
int m_kn
The number of neighbors for normal estimation.
Definition: src/tools/lvr2_dmc_reconstruction/Options.hpp:99
dmc_reconstruction::Options::getKn
int getKn() const
Definition: src/tools/lvr2_dmc_reconstruction/Options.cpp:69
dmc_reconstruction::Options::m_numThreads
int m_numThreads
The number of threads to use.
Definition: src/tools/lvr2_dmc_reconstruction/Options.hpp:105
argc
int argc
Definition: tests_high_five_parallel.cpp:27
dmc_reconstruction::Options::m_ki
int m_ki
The number of neighbors for normal interpolation.
Definition: src/tools/lvr2_dmc_reconstruction/Options.hpp:102
lvr2
Definition: BaseBufferManipulators.hpp:39
dmc_reconstruction::Options::m_pcm
string m_pcm
The used point cloud manager.
Definition: src/tools/lvr2_dmc_reconstruction/Options.hpp:108
dmc_reconstruction::Options::getMaxError
float getMaxError() const
Definition: src/tools/lvr2_dmc_reconstruction/Options.cpp:43
dmc_reconstruction::Options::m_maxError
float m_maxError
The max allowed error between points and surfaces in an octree cell.
Definition: src/tools/lvr2_dmc_reconstruction/Options.hpp:93
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28


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