mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-08 02:57:46 +08:00
Texturing: Added min polygon cluster size parameter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user