iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::RandomRemovalFilter Class Reference

#include <nrt/PointCloud2/Filter/RandomRemovalFilter.H>

A filter that removes points from a point cloud.

This filter is designed to remove randomly some percentage of all points in a point cloud. It is a fast way to reduce the number of elements in a cloud.

Examples:
tests/test-PointCloud2Filter.C.

Definition at line 48 of file RandomRemovalFilter.H.

Inheritance diagram for nrt::RandomRemovalFilter:
nrt::FilterBase

Public Member Functions

 RandomRemovalFilter (double removalPercentage)
 Create a random removal filter to remove some percentage of points.
 
virtual PointCloud2 filter (PointCloud2 const input)
 Filters the input point cloud. More...
 
virtual PointCloud2 filter (PointCloud2 const input, Indices const indices)
 Filters a subset of the input point cloud. More...
 
- Public Member Functions inherited from nrt::FilterBase
virtual ~FilterBase ()
 Virtual destruction.
 
template<class Field >
PointCloud2 filter (PointCloud2 const input)
 Force the filter to operate on a specific field, if supported. More...
 
template<class Field >
PointCloud2 filter (PointCloud2 const input, Indices const indices)
 Force the filter to operate on a specific field of a subset, if supported. More...
 

Member Function Documentation

virtual PointCloud2 nrt::RandomRemovalFilter::filter ( PointCloud2 const  input)
virtual

Filters the input point cloud.

Parameters
inputThe input point cloud
Returns
The filtered output

Implements nrt::FilterBase.

virtual PointCloud2 nrt::RandomRemovalFilter::filter ( PointCloud2 const  input,
Indices const  indices 
)
virtual

Filters a subset of the input point cloud.

Parameters
inputThe input point cloud
indicesThe subset to filter. Filter removal percentage will count against the size of this.
Returns
The filtered output

Implements nrt::FilterBase.


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