Texturing: Added min polygon cluster size parameter

This commit is contained in:
matlabbe
2017-03-04 18:20:26 -05:00
parent 4db957f437
commit e003fb8d35
7 changed files with 132 additions and 90 deletions
+10 -1
View File
@@ -119,7 +119,7 @@ namespace pcl
/** \brief Constructor. */
TextureMapping () :
f_ (), vector_field_ (), tex_files_ (), tex_material_ (), max_distance_(0.0f)
f_ (), vector_field_ (), tex_files_ (), tex_material_ (), max_distance_(0.0f), min_cluster_size_(50)
{
}
@@ -174,6 +174,12 @@ namespace pcl
max_distance_ = maxDistance;
}
inline void
setMinClusterSize(int size)
{
min_cluster_size_ = size;
}
/** \brief Map texture to a mesh synthesis algorithm
* \param[in] tex_mesh texture mesh
*/
@@ -363,6 +369,9 @@ namespace pcl
/** \brief maximum distance between camera and polygon to apply a texture */
float max_distance_;
/** \brief Remove texture from small polygon clusters */
int min_cluster_size_;
/** \brief Map texture to a face
* \param[in] p1 the first point
* \param[in] p2 the second point