Go to the documentation of this file.
41 #include <boost/program_options.hpp>
461 o.printTransformation(os);
464 if(o.getIntersections() > 0)
466 cout <<
"##### Intersections \t\t: " << o.getIntersections() << endl;
470 cout <<
"##### Voxelsize \t\t: " << o.getVoxelsize() << endl;
472 cout <<
"##### Number of threads \t: " << o.getNumThreads() << endl;
473 cout <<
"##### Point cloud manager \t: " << o.getPCM() << endl;
476 cout <<
"##### Use RANSAC\t\t: YES" << endl;
480 cout <<
"##### Use RANSAC\t\t: NO" << endl;
483 cout <<
"##### Voxel decomposition: \t: " << o.getDecomposition() << endl;
484 cout <<
"##### Classifier:\t\t: " << o.getClassifier() << endl;
485 if(o.writeClassificationResult())
487 cout <<
"##### Dump classification\t: YES" << endl;
491 cout <<
"##### Dump classification\t: NO" << endl;
493 cout <<
"##### k_n \t\t\t: " << o.getKn() << endl;
494 cout <<
"##### k_i \t\t\t: " << o.getKi() << endl;
495 cout <<
"##### k_d \t\t\t: " << o.getKd() << endl;
496 if(o.getDecomposition() ==
"SF")
498 cout <<
"##### Sharp feature threshold \t: " << o.getSharpFeatureThreshold() << endl;
499 cout <<
"##### Sharp corner threshold \t: " << o.getSharpCornerThreshold() << endl;
503 cout <<
"##### Retesselate \t\t: YES" << endl;
504 cout <<
"##### Line fusion threshold \t: " << o.getLineFusionThreshold() << endl;
506 if(o.saveFaceNormals())
508 cout <<
"##### Write Face Normals \t: YES" << endl;
513 cout <<
"##### Fill holes \t\t: " << o.getFillHoles() << endl;
517 cout <<
"##### Fill holes \t\t: NO" << endl;
520 if(o.getDanglingArtifacts())
522 cout <<
"##### Remove DAs \t\t: " << o.getDanglingArtifacts() << endl;
526 cout <<
"##### Remove DAs \t\t: NO" << endl;
529 if(o.optimizePlanes())
531 cout <<
"##### Optimize Planes \t\t: YES" << endl;
532 cout <<
"##### Plane iterations\t\t: " << o.getPlaneIterations() << endl;
533 cout <<
"##### Normal threshold \t\t: " << o.getNormalThreshold() << endl;
534 cout <<
"##### Region threshold\t\t: " << o.getSmallRegionThreshold() << endl;
535 cout <<
"##### Region min size\t\t: " << o.getMinPlaneSize() << endl;
539 cout <<
"##### Save normals \t\t: YES" << endl;
541 if(o.saveOriginalData())
543 cout <<
"##### Save input data \t\t: YES" << endl;
546 if(o.recalcNormals())
548 cout <<
"##### Recalc normals \t\t: YES" << endl;
550 if(o.savePointNormals())
552 cout <<
"##### Save points normals \t: YES" << endl;
554 if(o.vertexColorsFromPointcloud())
556 cout <<
"##### Vertex colors: \t\t: YES" << endl;
558 if(o.generateTextures())
560 cout <<
"##### Generate Textures \t: YES" << endl;
561 cout <<
"##### Texel size \t\t: " << o.getTexelSize() << endl;
562 cout <<
"##### Texture Min#Cluster \t: " << o.getTexMinClusterSize() << endl;
563 cout <<
"##### Texture Max#Cluster \t: " << o.getTexMaxClusterSize() << endl;
565 if(o.doTextureAnalysis())
567 cout <<
"##### Texture Analysis \t: ON" << endl;
571 cout <<
"##### Texture Analysis \t\t: OFF" << endl;
574 if(o.getEdgeCollapseReductionRatio() > 0.0)
576 cout <<
"##### Edge collapse reduction ratio\t: " << o.getEdgeCollapseReductionRatio() << endl;
581 cout <<
"##### GPU normal estimation \t: ON" << endl;
582 std::vector<float> flipPoint = o.getFlippoint();
583 cout <<
"##### Flippoint \t\t: ("
584 << flipPoint[0] <<
", "
585 << flipPoint[1] <<
", "
586 << flipPoint[2] <<
")" << endl;
588 cout <<
"##### GPU normal estimation \t: OFF" << endl;
bool m_vertexColorsFromPointcloud
Use pointcloud colors to paint vertices.
bool writeClassificationResult() const
True if region clustering without plane optimization is required.
bool m_generateTextures
Whether or not the mesh should be retesselated while being finalized.
bool extrude() const
Whether to extend the grid. Enable by default.
bool getUseCrossCorr() const
int m_planeIterations
Number of iterations for plane optimzation.
int getIntersections() const
Returns the number of intersections. If the return value is positive it will be used for reconstructi...
bool printUsage() const
Prints a usage message to stdout.
int m_numberOfDefaults
The number of used default values.
bool generateTextures() const
If true, textures will be generated during finalization of mesh.
int m_kd
The number of neighbors for distance function evaluation.
float getVoxelsize() const
Returns the given voxelsize.
bool clusterPlanes() const
True if region clustering without plane optimization is required.
string getDecomposition() const
Returns the name of the used point cloud handler.
unsigned int m_coherenceThreshold
Coherence threshold for texture matching based on color information.
int m_intersections
The number of intersections used for reconstruction.
int getTexMaxClusterSize() const
int getDanglingArtifacts() const
Returns the number of dangling artifacts to remove from a created mesh.
int getKn() const
Returns the number of neighbors used for initial normal estimation.
float m_sct
Sharp corner threshold when using sharp feature decomposition.
int getSmallRegionThreshold() const
Returns the threshold for the size of small region deletion after plane optimization.
float getSharpFeatureThreshold() const
Returns the sharp feature threshold when using sharp feature decomposition.
float m_texelSize
Texel size.
float getColorThreshold() const
vector< float > getFlippoint() const
float m_sft
Sharp feature threshold when using sharp feature decomposition.
float getFeatureThreshold() const
bool colorRegions() const
Returns true of region coloring is enabled.
int m_numThreads
The number of uesed threads.
bool recalcNormals() const
If true, normals should be calculated even if they are already given in the input file.
bool saveNormals() const
Returns true if the interpolated normals should be saved in the putput file.
int m_cleanContourIterations
int getCleanContourIterations() const
Number of iterations for contour cleanup.
int m_minPlaneSize
Threshold for plane optimization.
int m_fillHoles
Threshold for hole filling.
float getTexelSize() const
Returns the texel size for texture resolution.
int getPlaneIterations() const
Returns to number plane optimization iterations.
float m_colorThreshold
Threshold for texture matching based on colors.
bool saveFaceNormals() const
Returns true if the face normals of the reconstructed mesh should be saved to an extra file ("face_no...
string getScanPoseFile() const
Returns the name of the given file with scan poses used for normal flipping.
vector< string > getOutputFileNames() const
Returns the output file names.
float m_edgeCollapseReductionRatio
Reduction ratio for mesh reduction via edge collapse.
string getOutputFileName() const
Returns the output file name.
int m_texMinClusterSize
Minimum number of textures of a cluster needed for generating textures.
int m_kn
The number of neighbors for normal estimation.
unsigned int getCoherenceThreshold() const
string getClassifier() const
Returns the name of the classifier used to color the mesh.
unsigned int m_numCCVColors
Number of colors for texture matching based on color information.
bool retesselate() const
Return whether the mesh should be retesselated or not.
float getEdgeCollapseReductionRatio() const
Reduction ratio for mesh reduction via edge collapse.
float m_featuresThreshold
Threshold for texture matching based on features.
bool saveOriginalData() const
Returns true if the original points should be stored together with the reconstruction.
int getNumThreads() const
Returns the number of used threads.
bool optimizePlanes() const
Returns true if cluster optimization is enabled.
ostream & operator<<(ostream &os, const Options &o)
Overlaoeded outpur operator.
string m_faceNormalFile
The putput file name for face normals.
float getNormalThreshold() const
Returns the normal threshold for plane optimization.
float getStatsThreshold() const
int getKd() const
Returns the number of neighbors used for distance function evaluation.
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
int getFillHoles() const
Returns the region threshold for hole filling.
bool m_writeClassificationResult
Whether or not the classifier shall dump meta data to a file 'clusters.clu'.
string getTexturePack() const
string getPCM() const
Returns the name of the used point cloud handler.
int m_smallRegionThreshold
Threshold for small ragions.
bool m_retesselate
Whether or not the mesh should be retesselated while being finalized.
int getMinPlaneSize() const
Minimum value for plane optimzation.
string getProjectDir() const
float m_patternThreshold
Threshold for pattern extraction from textures.
float m_voxelsize
The set voxelsize.
vector< float > m_flippoint
unsigned int getNumStatsColors() const
bool vertexColorsFromPointcloud() const
int getKi() const
Returns the number of neighbors for normal interpolation.
string getInputFileName() const
Returns the input file name.
bool doTextureAnalysis() const
True if texture analysis is enabled.
float * getStatsCoeffs() const
float m_planeNormalThreshold
Threshold for plane optimization.
int getTexMinClusterSize() const
float getPatternThreshold() const
string m_statsCoeffs
Coefficents file for texture matching based on statistics.
int getMinimumTransformationVotes() const
bool saveGrid() const
Returns true if the Marching Cubes grid should be save.
bool texturesFromImages() const
float m_lineFusionThreshold
Threshold for line fusing when tesselating.
string m_texturePack
Path to texture pack.
int m_minimumTransformationVotes
Minimum number of vote to consider a texture transformation as "correct".
bool useRansac() const
If true, RANSAC based normal estimation is used.
float m_statsThreshold
Threshold for texture matching based on statistics.
float getLineFusionThreshold() const
Returns the fusion threshold for tesselation.
bool filenameSet() const
Returns true if an output filen name was set.
bool m_useCrossCorr
Whether to use texture matching based on cross correlation.
float getSharpCornerThreshold() const
Returns the sharp corner threshold when using sharp feature decomposition.
string m_classifier
Name of the classifier object to color the mesh.
bool savePointNormals() const
Indicates whether to save the used points together with the interpolated normals.
unsigned int getNumCCVColors() const
string m_pcm
The used point cloud manager.
int m_rda
Number of dangling artifacts to remove.
unsigned int m_numStatsColors
Number of colors for texture statistics.
int m_ki
The number of neighbors for normal interpolation.
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