Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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]

List of all members.

Public Types

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

Public Member Functions

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

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

Reimplemented in pcl::FilterIndices< sensor_msgs::PointCloud2 >.

IndicesPtr const pcl::PCLBase< sensor_msgs::PointCloud2 >::getIndices ( ) [inline, inherited]

Get a pointer to the vector of indices used.

Definition at line 329 of file pcl_base.h.

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.

Get the point indices being removed.

Reimplemented in pcl::FilterIndices< sensor_msgs::PointCloud2 >.

Definition at line 181 of file filter.h.

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) [inline, inherited]

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) [inline, inherited]

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.

Provide a pointer to the input dataset.

Parameters:
cloudthe const boost shared pointer to a PointCloud message

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.

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.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines