Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 > Class Template Reference

StatisticalOutlierRemoval uses point neighborhood statistics to filter outlier data. More...

#include <pcl/filters/statistical_outlier_removal.h>

Inheritance diagram for pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 >:
Inheritance graph
[legend]
Collaboration diagram for pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 >:
Collaboration graph
[legend]

Public Types

typedef PointIndices::Ptr PointIndicesPtr
 
typedef PointIndices::ConstPtr PointIndicesConstPtr
 

Public Member Functions

 StatisticalOutlierRemoval (bool extract_removed_indices=false)
 Empty constructor. More...
 
void setMeanK (int nr_k)
 Set the number of points (k) to use for mean distance estimation. More...
 
int getMeanK ()
 Get the number of points to use for mean distance estimation. More...
 
void setStddevMulThresh (double std_mul)
 Set the standard deviation multiplier threshold. More...
 
double getStddevMulThresh ()
 Get the standard deviation multiplier threshold as set by the user. More...
 
void setNegative (bool negative)
 Set whether the indices should be returned, or all points except the indices. More...
 
bool getNegative ()
 Get the value of the internal #negative_ parameter. More...
 
IndicesConstPtr const getRemovedIndices ()
 Get the point indices being removed. More...
 
void filter (PointCloud2 &output)
 Calls the filtering method and returns the filtered dataset in output. More...
 
void setInputCloud (const PointCloud2ConstPtr &cloud)
 Provide a pointer to the input dataset. More...
 
PointCloud2ConstPtr const getInputCloud ()
 Get a pointer to the input point cloud dataset. More...
 
void setIndices (const IndicesPtr &indices)
 Provide a pointer to the vector of indices that represents the input data. More...
 
void setIndices (const PointIndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data. More...
 
IndicesPtr const getIndices ()
 Get a pointer to the vector of indices used. More...
 

Detailed Description

template<>
class pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 >

StatisticalOutlierRemoval uses point neighborhood statistics to filter outlier data.

For more information check:

Note
setFilterFieldName (), setFilterLimits (), and setFilterLimitNegative () are ignored.
Author
Radu Bogdan Rusu

Definition at line 197 of file statistical_outlier_removal.h.

Member Typedef Documentation

Definition at line 280 of file pcl_base.h.

Definition at line 279 of file pcl_base.h.

Constructor & Destructor Documentation

pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 >::StatisticalOutlierRemoval ( bool  extract_removed_indices = false)
inline

Empty constructor.

Definition at line 214 of file statistical_outlier_removal.h.

Member Function Documentation

void pcl::Filter< sensor_msgs::PointCloud2 >::filter ( PointCloud2 output)
inherited

Calls the filtering method and returns the filtered dataset in output.

Parameters
[out]outputthe resultant filtered point cloud dataset
IndicesPtr const pcl::PCLBase< sensor_msgs::PointCloud2 >::getIndices ( )
inlineinherited

Get a pointer to the vector of indices used.

Definition at line 329 of file pcl_base.h.

PointCloud2ConstPtr const pcl::PCLBase< sensor_msgs::PointCloud2 >::getInputCloud ( )
inlineinherited

Get a pointer to the input point cloud dataset.

Definition at line 303 of file pcl_base.h.

Get the number of points to use for mean distance estimation.

Definition at line 232 of file statistical_outlier_removal.h.

Get the value of the internal #negative_ parameter.

If true, all points except the input indices will be returned.

Returns
The value of the "negative" flag

Definition at line 270 of file statistical_outlier_removal.h.

IndicesConstPtr const pcl::Filter< sensor_msgs::PointCloud2 >::getRemovedIndices ( )
inlineinherited

Get the point indices being removed.

Definition at line 181 of file filter.h.

double pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 >::getStddevMulThresh ( )
inline

Get the standard deviation multiplier threshold as set by the user.

Definition at line 251 of file statistical_outlier_removal.h.

void pcl::PCLBase< sensor_msgs::PointCloud2 >::setIndices ( const IndicesPtr indices)
inlineinherited

Provide a pointer to the vector of indices that represents the input data.

Parameters
indicesa pointer to the vector of indices that represents the input data.

Definition at line 309 of file pcl_base.h.

void pcl::PCLBase< sensor_msgs::PointCloud2 >::setIndices ( const PointIndicesConstPtr indices)
inlineinherited

Provide a pointer to the vector of indices that represents the input data.

Parameters
indicesa pointer to the vector of indices that represents the input data.

Definition at line 320 of file pcl_base.h.

void pcl::PCLBase< sensor_msgs::PointCloud2 >::setInputCloud ( const PointCloud2ConstPtr cloud)
inherited

Provide a pointer to the input dataset.

Parameters
cloudthe const boost shared pointer to a PointCloud message
void pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 >::setMeanK ( int  nr_k)
inline

Set the number of points (k) to use for mean distance estimation.

Parameters
nr_kthe number of points to use for mean distance estimation

Definition at line 225 of file statistical_outlier_removal.h.

void pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 >::setNegative ( bool  negative)
inline

Set whether the indices should be returned, or all points except the indices.

Parameters
negativetrue if all points except the input indices will be returned, false otherwise

Definition at line 260 of file statistical_outlier_removal.h.

void pcl::StatisticalOutlierRemoval< sensor_msgs::PointCloud2 >::setStddevMulThresh ( double  std_mul)
inline

Set the standard deviation multiplier threshold.

All points outside the

\[ \mu \pm \sigma \cdot std\_mul \]

will be considered outliers, where $ \mu $ is the estimated mean, and $ \sigma $ is the standard deviation.

Parameters
std_multhe standard deviation multiplier threshold

Definition at line 244 of file statistical_outlier_removal.h.


The documentation for this class was generated from the following file: