- //可视化
- //viewer->addPointCloud(cloud,"sample cloud1");
- //双视口
- //boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer(new pcl::visualization::PCLVisualizer("3D Viewer"));
- //viewer->initCameraParameters();
- //int v1(0);
- //viewer->createViewPort(0.0,0.0,0.5,1.0,v1);
- //viewer->setBackgroundColor(0,0,0,v1);
- //viewer->addText("original", 10,10,"v1 text", v1);
- //viewer->addPointCloud(cloud,"sample cloud1", v1);
- //int v2(0);
- //viewer->createViewPort(0.5,0.0,1.0,1.0,v2);
- //viewer->setBackgroundColor(0.3,0.3,0.3,v2);
- //viewer->addText("after filtered", 10,10,"v2 text", v2);
- //viewer->addPointCloud(cloud_filtered,"sample cloud2", v2);
- //viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_FONT_SIZE,3,"sample cloud1");
- //viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_FONT_SIZE,3,"sample cloud2");
- //
复制代码 LZ看看这个行么 |