Public Member Functions | Protected Member Functions | Protected Attributes

pcl::RadiusOutlierRemoval< PointT > Class Template Reference
[Module filters]

RadiusOutlierRemoval is a simple filter that removes outliers if the number of neighbors in a certain search radius is smaller than a given K. More...

#include <pcl/filters/radius_outlier_removal.h>

Inheritance diagram for pcl::RadiusOutlierRemoval< PointT >:
Inheritance graph
[legend]
Collaboration diagram for pcl::RadiusOutlierRemoval< PointT >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RadiusOutlierRemoval (bool extract_removed_indices=false)
 Empty constructor.
void setRadiusSearch (double radius)
 Set the sphere radius that is to be used for determining the k-nearest neighbors for filtering.
double getRadiusSearch ()
 Get the sphere radius used for determining the k-nearest neighbors.
void setMinNeighborsInRadius (int min_pts)
 Set the minimum number of neighbors that a point needs to have in the given search radius in order to be considered an inlier (i.e., valid).
double getMinNeighborsInRadius ()
 Get the minimum number of neighbors that a point needs to have in the given search radius to be considered an inlier and avoid being filtered.

Protected Member Functions

void applyFilter (PointCloud &output)
 Apply the filter.

Protected Attributes

double search_radius_
 The nearest neighbors search radius for each point.
int min_pts_radius_
 The minimum number of neighbors that a point needs to have in the given search radius to be considered an inlier.
KdTreePtr tree_
 A pointer to the spatial search object.

Detailed Description

template<typename PointT>
class pcl::RadiusOutlierRemoval< PointT >

RadiusOutlierRemoval is a simple filter that removes outliers if the number of neighbors in a certain search radius is smaller than a given K.

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

Definition at line 55 of file radius_outlier_removal.h.


Constructor & Destructor Documentation

template<typename PointT >
pcl::RadiusOutlierRemoval< PointT >::RadiusOutlierRemoval ( bool  extract_removed_indices = false  )  [inline]

Empty constructor.

Definition at line 74 of file radius_outlier_removal.h.


Member Function Documentation

template<typename PointT >
void pcl::RadiusOutlierRemoval< PointT >::applyFilter ( PointCloud output  )  [protected, virtual]

Apply the filter.

Parameters:
output the resultant point cloud message

Implements pcl::Filter< PointT >.

Definition at line 45 of file radius_outlier_removal.hpp.

template<typename PointT >
double pcl::RadiusOutlierRemoval< PointT >::getMinNeighborsInRadius (  )  [inline]

Get the minimum number of neighbors that a point needs to have in the given search radius to be considered an inlier and avoid being filtered.

Definition at line 111 of file radius_outlier_removal.h.

template<typename PointT >
double pcl::RadiusOutlierRemoval< PointT >::getRadiusSearch (  )  [inline]

Get the sphere radius used for determining the k-nearest neighbors.

Definition at line 92 of file radius_outlier_removal.h.

template<typename PointT >
void pcl::RadiusOutlierRemoval< PointT >::setMinNeighborsInRadius ( int  min_pts  )  [inline]

Set the minimum number of neighbors that a point needs to have in the given search radius in order to be considered an inlier (i.e., valid).

Parameters:
min_pts the minimum number of neighbors

Definition at line 102 of file radius_outlier_removal.h.

template<typename PointT >
void pcl::RadiusOutlierRemoval< PointT >::setRadiusSearch ( double  radius  )  [inline]

Set the sphere radius that is to be used for determining the k-nearest neighbors for filtering.

Parameters:
radius the sphere radius that is to contain all k-nearest neighbors

Definition at line 85 of file radius_outlier_removal.h.


Member Data Documentation

template<typename PointT >
int pcl::RadiusOutlierRemoval< PointT >::min_pts_radius_ [protected]

The minimum number of neighbors that a point needs to have in the given search radius to be considered an inlier.

Definition at line 123 of file radius_outlier_removal.h.

template<typename PointT >
double pcl::RadiusOutlierRemoval< PointT >::search_radius_ [protected]

The nearest neighbors search radius for each point.

Definition at line 118 of file radius_outlier_removal.h.

template<typename PointT >
KdTreePtr pcl::RadiusOutlierRemoval< PointT >::tree_ [protected]

A pointer to the spatial search object.

Definition at line 126 of file radius_outlier_removal.h.


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