当前位置:   article > 正文

PCL 1.6--- point cloud viewer

point cloud viewer
PCL.h 文件
  1. //#pragma once
  2. #ifndef __SLP_H
  3. #define __SLP_H
  4. #include <pcl/visualization/cloud_viewer.h>
  5. #include <pcl/point_types.h>
  6. #include <pcl/io/pcd_io.h>
  7. #include <pcl/kdtree/kdtree_flann.h>
  8. #include <pcl/surface/mls.h>
  9. #include <pcl/registration/icp.h>
  10. #include <pcl/io/ply_io.h>
  11. #include <pcl/features/normal_3d.h>
  12. #include <pcl/surface/gp3.h>
  13. #include <pcl/visualization/pcl_visualizer.h>
  14. #include <pcl/io/vtk_io.h>
  1. ##include <ctime>
  2. #include <vector>
  3. using namespace pcl;
  4. const int SIZE_ROWS = 1024;
  5. const int SIZE_COLS = 1280;
  6. void viewcloud(char *filename);
  7. void writecloudXYZRGB(char *filename);
  8. void writecloudXYZ(char *filename);
  9. void viewerOneOff (pcl::visualization::PCLVisualizer& viewer);
  10. void viewerPsycho (pcl::visualization::PCLVisualizer& viewer);
  11. float colortable[64*3]=
  12. { 0 , 0, 143.4375,
  13. 0 , 0 , 159.3750,
  14. 0 , 0 , 175.3125,
  15. 0 , 0 , 191.2500,
  16. 0 , 0 , 207.1875,
  17. 0 , 0 , 223.1250,
  18. 0 , 0 , 239.0625,
  19. 0 , 0 , 255.0000,
  20. 0 , 15.9375 , 255.0000,
  21. 0 , 31.8750, 255.0000,
  22. 0 , 47.8125 , 255.0000,
  23. 0 , 63.7500, 255.0000,
  24. 0 , 79.6875 , 255.0000,
  25. 0 , 95.6250 , 255.0000,
  26. 0, 111.5625 , 255.0000,
  27. 0 , 127.5000 , 255.0000,
  28. 0 , 143.4375 , 255.0000,
  29. 0, 159.3750 , 255.0000,
  30. 0, 175.3125 , 255.0000,
  31. 0 , 191.2500 , 255.0000,
  32. 0 , 207.1875 , 255.0000,
  33. 0, 223.1250, 255.0000,
  34. 0 , 239.0625 , 255.0000,
  35. 0 , 255.0000, 255.0000,
  36. 15.9375 , 255.0000 , 239.0625,
  37. 31.8750 , 255.0000
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/394178
推荐阅读
相关标签
  

闽ICP备14008679号