MACourtney7

pcl statisticaloutlierremoval filter

Feb 22nd, 2017
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. using pcl::PointXYZ;
  2. typedef pcl::PointCloud<PointXYZ> PointCloud;
  3.  
  4. PointCloud::Ptr statistical_outlier_removal ( PointCloud::Ptr input_cloud ) {
  5.     PointCloud::Ptr cloud_filtered;
  6.    
  7.     pcl::StatisticalOutlierRemoval<PointXYZ> filter;
  8.     filter.setInputCloud(input_cloud);
  9.     filter.setMeanK(50);
  10.     filter.setStddevMulThresh(1.0);
  11.     filter.filter(*cloud_filtered);
  12.    
  13.     return cloud_filtered;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment