mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-06 18:17:47 +08:00
Texturing: Added min polygon cluster size parameter
This commit is contained in:
@@ -608,6 +608,7 @@ pcl::TextureMesh::Ptr createTextureMesh(
|
||||
const std::map<int, Transform> & poses,
|
||||
const std::map<int, CameraModel> & cameraModels,
|
||||
float maxDistance,
|
||||
int minClusterSize,
|
||||
const ProgressState * state)
|
||||
{
|
||||
UASSERT(mesh->polygons.size());
|
||||
@@ -665,6 +666,7 @@ pcl::TextureMesh::Ptr createTextureMesh(
|
||||
// Texture by projection
|
||||
pcl::TextureMapping<pcl::PointXYZ> tm; // TextureMapping object that will perform the sort
|
||||
tm.setMaxDistance(maxDistance);
|
||||
tm.setMinClusterSize(minClusterSize);
|
||||
if(tm.textureMeshwithMultipleCameras2(*textureMesh, cameras, state))
|
||||
{
|
||||
// compute normals for the mesh if not already here
|
||||
|
||||
Reference in New Issue
Block a user