Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer(new pcl::visualization::PCLVisualizer("3D Viewer"));
  2. viewer->setBackgroundColor(0, 0, 0);
  3. viewer->initCameraParameters();
  4. viewer->setPosition(100, 0);
  5. viewer->setSize(1250, 740);
  6.  
  7. //Show clouds
  8. if (cloud_Left != NULL)
  9. {
  10. viewer->addPointCloud<pcl::PointXYZI>(cloud_Left, "cloud_Left");
  11. viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 1, "cloud_Left");
  12. viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_COLOR, 0, 0.5, 0, "cloud_Left");
  13. }
  14. if (cloud_Right != NULL)
  15. {
  16. viewer->addPointCloud<pcl::PointXYZI>(cloud_Right, "cloud_Right");
  17. viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 1, "cloud_Right");
  18. viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_COLOR, 0.5, 0, 0, "cloud_Right");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement