TextureMapping: added maximum camera distance

This commit is contained in:
matlabbe
2017-01-31 23:26:35 -05:00
parent 8e0e04eae9
commit bfb9feaf07
6 changed files with 1715 additions and 85 deletions

View File

@@ -136,7 +136,7 @@ pcl::TextureMesh::Ptr RTABMAP_EXP createTextureMesh(
const pcl::PolygonMesh::Ptr & mesh,
const std::map<int, Transform> & poses,
const std::map<int, CameraModel> & cameraModels,
int kNormalSearch = 20); // if mesh doesn't have normals, compute them with k neighbors
float maxDistance = 0.0f); // max camera distance to polygon to apply texture
pcl::PointCloud<pcl::Normal>::Ptr RTABMAP_EXP computeNormals(
const pcl::PointCloud<pcl::PointXYZ>::Ptr & cloud,