Threshold distance when projecting points using parametric model

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Threshold distance when projecting points using parametric model

benoit duinat
Hi,

I'm wondering if there is an option to select a threshold distance when projecting with pcl.
I managed to project my cloud point, but I would like just a slice of it 
Is there any "proj.setDistanceThreshold (0.01);" or similar to add in my code ?

pcl::ModelCoefficients::Ptr coefficients (new pcl::ModelCoefficients ());
  coefficients->values.resize (4);
  coefficients->values[0] = coefficients->values[1] = 0;
  coefficients->values[2] = 1.0;
  coefficients->values[3] = 0;

  // Create the filtering object
  pcl::ProjectInliers<pcl::PointXYZ> proj;
  proj.setModelType (pcl::SACMODEL_PLANE);
  proj.setInputCloud (cloud);
  proj.setModelCoefficients (coefficients);
  proj.filter (*cloud_projected);

--
Duinat Benoit
+14184736970

[hidden email]

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users