ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to know which points pcl::PassThrough and pcl::StatisticalOutlierRemoval removes?

asked 2011-02-21 18:39:54 -0600

updated 2011-02-22 07:44:09 -0600

mmwise gravatar image

Hi,

I would like to know which point is removed/filtered out from an input cloud after applying pcl::PassThrough and pcl::StatisticalOutlierRemoval filters. What I mean by "which point" is the x and y index values of a 3D Point in the sensor plane, or simply the index value of the point.

I have checked pcl::ExtractIndices and pcl_base.h and many other source files, but I couldn't find an easy way to do that.

Thanks...

edit retag flag offensive close merge delete

Comments

You can get x,y,z of points that you want when you call pcl::PassThrough and pcl::StatisticalOutlierRemoval filters. What I don't know is how to know the indices of original point cloud. Anyone know? Thank you~

sam gravatar image sam  ( 2014-05-09 22:22:16 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2011-02-23 08:53:56 -0600

Hi Corey,

I think you misunderstood the actual problem here.

It is not possible to know which points are removed/filtered out in the current version of PCL for the filters that I have mentioned above. This feature/addon is going to be included in the upcoming versions of PCL, probably 2.0.

edit flag offensive delete link more
2

answered 2011-02-22 07:52:58 -0600

Corey Montella gravatar image

updated 2011-02-22 08:43:17 -0600

The statistical outlier removal object has a setNegative() method which will extract outliers instead of inliers. Simply pass this method 'true'.

For the passthrough filter, you can use setFilterLimitsNegative(). Pass this method 'true' as well to get the outliers.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-02-21 18:39:54 -0600

Seen: 2,623 times

Last updated: Feb 23 '11