common.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef __COMMON__H__
  2. #define __COMMON__H__
  3. #undef max
  4. #undef min
  5. #include "opencv/highgui.h"
  6. #include "opencv2/opencv.hpp"
  7. #include <pcl/features/moment_of_inertia_estimation.h>
  8. #include <pcl/filters/passthrough.h>
  9. #include <pcl/ModelCoefficients.h>
  10. #include <pcl/filters/project_inliers.h>
  11. #include <pcl/surface/convex_hull.h>
  12. #include <pcl/surface/concave_hull.h>
  13. #include <pcl/segmentation/sac_segmentation.h>
  14. #include <pcl/console/parse.h>
  15. #include <pcl/io/io.h>
  16. #include <pcl/io/pcd_io.h>
  17. #include <pcl/point_types.h>
  18. #include <pcl/common/io.h>
  19. #include <pcl/common/common.h>
  20. //#include <pcl/visualization/pcl_visualizer.h>
  21. #include <pcl/common/transforms.h>
  22. #include <pcl/common/common.h>
  23. //#include <pcl/visualization/cloud_viewer.h>
  24. #include <pcl/filters/extract_indices.h>
  25. #include <pcl/features/normal_3d.h>
  26. #include <pcl/kdtree/kdtree.h>
  27. #include <pcl/sample_consensus/method_types.h>
  28. #include <pcl/sample_consensus/model_types.h>
  29. #include <pcl/segmentation/extract_clusters.h>
  30. #include <pcl/filters/statistical_outlier_removal.h>
  31. #include <pcl/filters/radius_outlier_removal.h>
  32. #include <pcl/common/transforms.h>
  33. #include <pcl/filters/crop_hull.h>
  34. #include <pcl/filters//voxel_grid.h>
  35. //vtk
  36. //#include <vtkRenderWindow.h>
  37. //#include <vtkRenderWindowInteractor.h>
  38. //#include "vtkRenderingCoreModule.h" // For export macro
  39. //#include "vtkViewport.h"
  40. //#include "vtkConeSource.h"
  41. //#include "vtkPolyDataMapper.h"
  42. //#include "vtkCamera.h"
  43. //#include "vtkActor.h"
  44. //#include "vtkRenderer.h"
  45. //#include "vtkProperty.h"
  46. typedef pcl::PointXYZ PointT;
  47. typedef pcl::PointCloud<PointT> PointCloudT;
  48. typedef pcl::PointCloud<PointT>::Ptr PtrCloud;
  49. typedef Eigen::Matrix4f EMetrix;
  50. #include <glog/logging.h>
  51. #include <google/protobuf/io/coded_stream.h>
  52. #include <google/protobuf/io/zero_copy_stream_impl.h>
  53. #include <google/protobuf/text_format.h>
  54. using google::protobuf::io::FileInputStream;
  55. using google::protobuf::io::FileOutputStream;
  56. using google::protobuf::io::ZeroCopyInputStream;
  57. using google::protobuf::io::CodedInputStream;
  58. using google::protobuf::io::ZeroCopyOutputStream;
  59. using google::protobuf::io::CodedOutputStream;
  60. using google::protobuf::Message;
  61. #endif