34 #ifndef LARGESCALEOPTIONS_H_ 35 #define LARGESCALEOPTIONS_H_ 39 #include <boost/program_options.hpp> 562 cout <<
"##### Voxelsize \t\t: " << o.
getVoxelsize() << endl;
564 cout <<
"##### Number of threads \t: " << o.
getNumThreads() << endl;
565 cout <<
"##### Point cloud manager \t: " << o.
getPCM() << endl;
568 cout <<
"##### Use RANSAC\t\t: YES" << endl;
572 cout <<
"##### Use RANSAC\t\t: NO" << endl;
576 cout <<
"##### Classifier\t\t: " << o.
getClassifier() << endl;
579 cout <<
"##### Dump classification\t: YES" << endl;
583 cout <<
"##### Dump classification\t: NO" << endl;
585 cout <<
"##### k_i \t\t\t: " << o.
getKi() << endl;
586 cout <<
"##### k_d \t\t\t: " << o.
getKd() << endl;
587 cout <<
"##### k_n \t\t\t: " << o.
getKn() << endl;
595 cout <<
"##### Retesselate \t\t: YES" << endl;
600 cout <<
"##### Write Face Normals \t: YES" << endl;
605 cout <<
"##### Fill holes \t\t: " << o.
getFillHoles() << endl;
609 cout <<
"##### Fill holes \t\t: NO" << endl;
618 cout <<
"##### Remove DAs \t\t: NO" << endl;
623 cout <<
"##### Optimize Planes \t\t: YES" << endl;
630 cout <<
"##### Save normals \t\t: YES" << endl;
634 cout <<
"##### Save input data \t\t: YES" << endl;
639 cout <<
"##### Recalc normals \t\t: YES" << endl;
643 cout <<
"##### Save points normals \t: YES" << endl;
647 cout <<
"##### Generate Textures \t: YES" << endl;
648 cout <<
"##### Texel size \t\t: " << o.
getTexelSize() << endl;
651 cout <<
"##### Texture Analysis \t: OFF" << endl;
655 cout <<
"##### Texture Analysis \t\t: OFF" << endl;
660 cout <<
"##### Recursion depth \t\t: " << o.
getDepth() << endl;
670 cout <<
"##### Leaf Size \t\t: " << o.
getNodeSize() << endl;
677 cout <<
"##### Buffer Size \t\t: " << o.
getBufferSize() << endl;
679 cout <<
"##### Volumen Size \t\t: " << o.
getVolumenSize() << endl;
float getLineFusionThreshold() const
Returns the fusion threshold for tesselation.
int m_ki
The number of neighbors for normal interpolation.
float m_voxelsize
The set voxelsize.
bool generateTextures() const
If true, textures will be generated during finalization of mesh.
string getScanPoseFile() const
Returns the name of the given file with scan poses used for normal flipping.
string m_classifier
Name of the classifier object to color the mesh.
float getSharpFeatureThreshold() const
Returns the sharp feature threshold when using sharp feature decomposition.
bool optimizePlanes() const
Returns true if cluster optimization is enabled.
bool getUseCrossCorr() const
int m_planeIterations
Number of iterations for plane optimzation.
bool m_extrude
extruded flag
int getNumEdgeCollapses() const
Number of edge collapses.
float getPatternThreshold() const
string m_faceNormalFile
The putput file name for face normals.
int getNumThreads() const
Returns the number of used threads.
int getDanglingArtifacts() const
Returns the number of dangling artifacts to remove from a created mesh.
float m_featuresThreshold
Threshold for texture matching based on features.
ostream & operator<<(ostream &os, const Options &o)
Overlaoeded outpur operator.
unsigned int m_octreeNodeSize
A class to parse the program options for the reconstruction executable.
bool m_generateTextures
Whether or not the mesh should be retesselated while being finalized.
int m_chunkSize
gridsize for virtual grid
float m_sft
Sharp feature threshold when using sharp feature decomposition.
bool extrude() const
Whether to extend the grid. Enabled by default.
bool saveFaceNormals() const
Returns true if the face normals of the reconstructed mesh should be saved to an extra file ("face_no...
int getPartMethod() const
Retuns flag for partition-method (0 = kd-Tree; 1 = VGrid)
int m_depth
Maximum recursion depth for region growing.
string m_outputFolderPath
int m_minPlaneSize
Threshold for plane optimization.
size_t getVolumenSize() const
unsigned int getBufferSize() const
bool useGPU() const
Returns if the GPU shuold be used for the normal estimation.
bool m_writeClassificationResult
Whether or not the classifier shall dump meta data to a file 'clusters.clu'.
void printTransformation(std::ostream &out) const
Prints transformation information to the given output stream.
int getKn() const
Returns the number of neighbors used for initial normal estimation.
int m_removeDanglingArtifacts
Number of dangling artifacts to remove.
float getVoxelsize() const
Returns the first given voxelsize.
unsigned int m_coherenceThreshold
Coherence threshold for texture matching based on color information.
float m_texelSize
Texel size.
bool printUsage() const
Prints a usage message to stdout.
float m_lineFusionThreshold
Threshold for line fusing when tesselating.
bool doTextureAnalysis() const
True if texture analysis is enabled.
int m_kn
The number of neighbors for normal estimation.
float m_sct
Sharp corner threshold when using sharp feature decomposition.
float m_planeNormalThreshold
Threshold for plane optimization.
int getKi() const
Returns the number of neighbors for normal interpolation.
bool saveNormals() const
Returns true if the interpolated normals should be saved in the putput file.
int m_partMethod
sets partition method to kd-tree or virtual grid
bool getDebugChunks() const
Returns if the mesh of every chunk additionally should be written as a .ply.
unsigned int m_bufferSize
float getNormalThreshold() const
Returns the normal threshold for plane optimization.
size_t getLineReaderBuffer() const
bool getUseNormals() const
float getScaling() const
Returns the scaling factor.
float m_patternThreshold
Threshold for pattern extraction from textures.
int getDepth() const
Returns the maximum recursion depth for region growing.
unsigned int getNumStatsColors() const
int m_minimumTransformationVotes
Minimum number of vote to consider a texture transformation as "correct".
int m_smallRegionThreshold
Threshold for small regions.
float m_colorThreshold
Threshold for texture matching based on colors.
int getPlaneIterations() const
Returns to number plane optimization iterations.
bool filenameSet() const
Returns true if an output filen name was set.
std::vector< string > getInputFileName() const
Returns the output file name.
float * getStatsCoeffs() const
int getMinPlaneSize() const
Minimum value for plane optimzation.
bool savePointNormals() const
Indicates whether to save the used points together with the interpolated normals. ...
int m_cleanContourIterations
number of cleanContour iterations
vector< float > getFlippoint() const
Returns the flipPoint for GPU normal computation.
unsigned int getCoherenceThreshold() const
int m_numThreads
The number of used threads.
string getOutputFolderPath() const
string m_statsCoeffs
Coefficents file for texture matching based on statistics.
float getColorThreshold() const
bool colorRegions() const
Returns true of region coloring is enabled.
string m_pcm
The used point cloud manager.
float m_voxelsizeBG
The set voxelsize for BigGrid.
int m_kd
The number of neighbors for distance function evaluation.
int getFillHoles() const
Returns the region threshold for hole filling.
size_t m_lineReaderBuffer
float m_statsThreshold
Threshold for texture matching based on statistics.
string getDecomposition() const
Returns the name of the used point cloud handler.
vector< float > m_voxelSizes
The set voxelsizes.
unsigned int m_numStatsColors
Number of colors for texture statistics.
bool saveGrid() const
Returns true if the Marching Cubes grid should be save.
int getSmallRegionThreshold() const
Returns the threshold for the size of small region deletion after plane optimization.
float getStatsThreshold() const
string m_ecm
Edge collapse method.
int getMinimumTransformationVotes() const
bool recalcNormals() const
If true, normals should be calculated even if they are already given in the input file...
float getSharpCornerThreshold() const
Returns the sharp corner threshold when using sharp feature decomposition.
bool clusterPlanes() const
True if region clustering without plane optimization is required.
int getCleanContourIterations() const
Number of iterations for contour cleanup.
bool m_useCrossCorr
Whether to use texture matching based on cross correlation.
string getTexturePack() const
int m_numberOfDefaults
The number of used default values.
bool m_debugChunks
flag to generate debug meshes for every chunk as a .ply
int m_intersections
The number of intersections used for reconstruction.
int m_numEdgeCollapses
Number of edge collapses.
string getEdgeCollapseMethod() const
Edge collapse method.
bool writeClassificationResult() const
True if region clustering without plane optimization is required.
float getFeatureThreshold() const
unsigned int getNodeSize() const
Only used in kd-tree (partMethod=0). Returns the maximum number of points in a leaf.
bool useRansac() const
If true, RANSAC based normal estimation is used.
vector< float > m_flippoint
flipPoint for GPU normal computation
bool retesselate() const
Return whether the mesh should be retesselated or not.
int getKd() const
Returns the number of neighbors used for distance function evaluation.
string getClassifier() const
Returns the name of the classifier used to color the mesh.
bool saveOriginalData() const
Returns true if the original points should be stored together with the reconstruction.
float getTexelSize() const
Returns the texel size for texture resolution.
bool m_bigMesh
flag to generate a .ply file for the reconstructed mesh
int getChunkSize() const
Returns the chunksize.
int getIntersections() const
Returns the number of intersections. If the return value is positive it will be used for reconstructi...
int m_fillHoles
Threshold for hole filling.
string getPCM() const
Returns the name of the used point cloud handler.
bool m_retesselate
Whether or not the mesh should be retesselated while being finalized.
float getBGVoxelsize() const
Returns the given voxelsize for bigGrid.
unsigned int getNumCCVColors() const
unsigned int m_numCCVColors
Number of colors for texture matching based on color information.
vector< float > getVoxelSizes() const
Returns all voxelsizes as a vector.
string m_texturePack
Path to texture pack.
bool interpolateBoxes() const
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
bool getBigMesh() const
Returns if the new chunks should be written as a .ply-mesh.