41 #include <boost/program_options.hpp> 72 string getInputDir()
const;
73 string getOutputDir()
const;
74 string getOutputFormat()
const;
75 string getInputFile()
const;
76 string getOutputFile()
const;
78 bool exportScanPositions()
const;
80 bool transformBefore()
const;
82 float getSigma()
const;
83 int getTargetSize()
const;
84 double getVoxelSize()
const;
85 size_t getMinPointsPerVoxel()
const;
87 bool convertToLVR()
const;
92 int r()
const {
return m_variables[
"rPos"].as<
int>() ;}
97 int g()
const {
return m_variables[
"gPos"].as<
int>();}
102 int b()
const {
return m_variables[
"bPos"].as<
int>();}
107 int i()
const {
return m_variables[
"iPos"].as<
int>();}
109 int getStart()
const {
return m_variables[
"start"].as<
int>(); }
111 int getEnd()
const {
return m_variables[
"end"].as<
int>(); }
113 std::string
getScanPrefix()
const {
return m_variables[
"scanPrefix"].as<std::string>(); }
114 std::string
getPosePrefix()
const {
return m_variables[
"posePrefix"].as<std::string>(); }
115 std::string
getScanExtension()
const {
return m_variables[
"scanExtension"].as<std::string>(); }
116 std::string
getPoseExtension()
const {
return m_variables[
"poseExtension"].as<std::string>(); }
138 cout <<
"##### Program options: " << endl;
139 cout <<
"##### Input dir \t\t: " << o.
getInputDir() << endl;
140 cout <<
"##### Output dir \t\t: " << o.
getOutputDir() << endl;
143 cout <<
"##### Filter \t\t\t: YES" << endl;
144 cout <<
"##### K \t\t\t\t: " << o.
getK() << endl;
145 cout <<
"##### Sigma \t\t\t: " << o.
getSigma() << endl;
149 cout <<
"##### Filter \t\t\t: NO" << endl;
151 cout <<
"##### Target Size \t: " << o.
getTargetSize() << endl;
std::string getPosePrefix() const
int b() const
Returns the position of the x coordinate in the data.
int r() const
Returns the position of the x coordinate in the data.
int i() const
Returns the position of the x coordinate in the data.
int getTargetSize() const
options_description m_descr
The internally used option description.
string getOutputDir() const
std::string getScanPrefix() const
string m_outputFile
Output file name.
variables_map m_variables
The internally used variable map.
void filter(lvr2::PointBufferPtr &cloud, lvr2::indexArray &inlier, size_t j)
ostream & operator<<(ostream &os, const Options &o)
Overlaoeded outpur operator.
int g() const
Returns the position of the x coordinate in the data.
std::string getPoseExtension() const
A class to parse the program options for the reconstruction executable.
positional_options_description m_pdescr
The internally used positional option desription.
std::string getScanExtension() const
string getInputDir() const