《PCL点云库学习&VS2010(X64)》Part 33 循环中的多个点云ID处理技巧
2017-04-21 16:58
471 查看
《PCL点云库学习&VS2010(X64)》Part 33 循环中的多个点云ID处理技巧
在局部拟合过程中,会产生多个局部点云数据,可视化过程中会出现PointCloudID的处理问题:
SetPointCloudRenderingProperty()函数会有警告:
couldn't find the point cloud id ...
解决方法:
注:主要是removePointCloud这个函数,可以移除之前的id,避免警告的出现。
在局部拟合过程中,会产生多个局部点云数据,可视化过程中会出现PointCloudID的处理问题:
SetPointCloudRenderingProperty()函数会有警告:
couldn't find the point cloud id ...
解决方法:
#include <string> ... for(int k=0;k<cloud->size();++k) { .... string cloud_name; cloud_name = "pointcloud_"+k; viewer.removePointCloud(cloud_name ); viewer->addPointCloud(point, red_handle, cloud_name ); viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 4, cloud_name ); ... }
注:主要是removePointCloud这个函数,可以移除之前的id,避免警告的出现。
相关文章推荐
- 《PCL点云库学习&VS2010(X64)》Part 46 点云分类—画刷分类
- 《PCL点云库学习&VS2010(X64)》Part 9 PCL1.72(VTK6.2.0)滤波例程
- 《PCL点云库学习&VS2010(X64)》Part 13 PCL1.72(VTK6.2.0)ICP示例
- 《PCL点云库学习&VS2010(X64)》Part 4 MFC+VTK+VS2010 测试VTK的MFC对话框程序
- 《PCL点云库学习&VS2010(X64)》Part 10 PCL1.72(VTK6.2.0)选点操作
- 《PCL点云库学习&VS2010(X64)》Part 31 pcl::PointCloud::Ptr和pcl::PointCloud相互转换
- 《PCL点云库学习&VS2010(X64)》Part 16 PCL1.72(VTK6.2.0)滤波例程(2)之双边滤波
- 《PCL点云库学习&VS2010(X64)》Part 11 PCL1.72(VTK6.2.0)点特征描述与提取
- 《PCL点云库学习&VS2010(X64)》Part 47 鼠标选取点云坐标的计算原理
- 《PCL点云库学习&VS2010(X64)》Part 30 空间中求一点到两点所构成的直线的距离
- 《PCL点云库学习&VS2010(X64)》Part 24 PCL&VTK&Eigen Spline曲线拟合
- 《PCL点云库学习&VS2010(X64)》Part 36 OpenTopography-激光雷达技术工具集
- 《PCL点云库学习&VS2010(X64)》Part 1 Installation of PCL in VS2010(x64)
- 《PCL点云库学习&VS2010(X64)》Part 2 A simple test of PCL in MFC
- 《PCL点云库学习&VS2010(X64)》Part 45 点云压缩算法—扫描线(DouglasPeuckerAlgorithm)
- 《PCL点云库学习&VS2010(X64)》Part 14 PCL1.72(VTK6.2.0)点云分割(Point Cloud Segmentation)
- 《PCL点云库学习&VS2010(X64)》Part 15 PCL1.72(VTK6.2.0)三角网格化(2)之泊松重构
- 《PCL点云库学习&VS2010(X64)》Part 29 PCL使用类成员函数作为pclvisualizer的回调函数
- 《PCL点云库学习&VS2010(X64)》Part 26 PCL中的fromPCLPointCloud2与toPCLPointCloud2
- 《PCL点云库学习&VS2010(X64)》Part 12 PCL1.72(VTK6.2.0)三角网格化(1)