Filter represents the base filter class. All filters must inherit from this interface. More...
#include <filter.h>
Public Types | |
typedef boost::shared_ptr < const Filter < pcl::PCLPointCloud2 > > | ConstPtr |
typedef pcl::PCLPointCloud2 | PCLPointCloud2 |
typedef PCLPointCloud2::ConstPtr | PCLPointCloud2ConstPtr |
typedef PCLPointCloud2::Ptr | PCLPointCloud2Ptr |
typedef boost::shared_ptr < Filter< pcl::PCLPointCloud2 > > | Ptr |
Public Member Functions | |
Filter (bool extract_removed_indices=false) | |
Empty constructor. | |
void | filter (PCLPointCloud2 &output) |
Calls the filtering method and returns the filtered dataset in output. | |
IndicesConstPtr const | getRemovedIndices () |
Get the point indices being removed. | |
void | getRemovedIndices (PointIndices &pi) |
Get the point indices being removed. | |
virtual | ~Filter () |
Empty destructor. | |
Protected Member Functions | |
virtual void | applyFilter (PCLPointCloud2 &output)=0 |
Abstract filter method. | |
const std::string & | getClassName () const |
Get a string representation of the name of this class. | |
Protected Attributes | |
bool | extract_removed_indices_ |
Set to true if we want to return the indices of the removed points. | |
std::string | filter_name_ |
The filter name. | |
IndicesPtr | removed_indices_ |
Indices of the points that are removed. |
Filter represents the base filter class. All filters must inherit from this interface.
typedef boost::shared_ptr< const Filter<pcl::PCLPointCloud2> > pcl::Filter< pcl::PCLPointCloud2 >::ConstPtr |
Reimplemented in pcl::RandomSample< pcl::PCLPointCloud2 >.
Reimplemented from pcl::PCLBase< pcl::PCLPointCloud2 >.
Reimplemented in pcl::VoxelGrid< pcl::PCLPointCloud2 >, pcl::PassThrough< pcl::PCLPointCloud2 >, pcl::CropBox< pcl::PCLPointCloud2 >, pcl::StatisticalOutlierRemoval< pcl::PCLPointCloud2 >, pcl::RadiusOutlierRemoval< pcl::PCLPointCloud2 >, pcl::FilterIndices< pcl::PCLPointCloud2 >, pcl::ProjectInliers< pcl::PCLPointCloud2 >, pcl::ExtractIndices< pcl::PCLPointCloud2 >, and pcl::RandomSample< pcl::PCLPointCloud2 >.
Reimplemented from pcl::PCLBase< pcl::PCLPointCloud2 >.
Reimplemented in pcl::VoxelGrid< pcl::PCLPointCloud2 >, pcl::PassThrough< pcl::PCLPointCloud2 >, pcl::CropBox< pcl::PCLPointCloud2 >, pcl::StatisticalOutlierRemoval< pcl::PCLPointCloud2 >, pcl::RadiusOutlierRemoval< pcl::PCLPointCloud2 >, pcl::ProjectInliers< pcl::PCLPointCloud2 >, pcl::ExtractIndices< pcl::PCLPointCloud2 >, and pcl::RandomSample< pcl::PCLPointCloud2 >.
Reimplemented from pcl::PCLBase< pcl::PCLPointCloud2 >.
Reimplemented in pcl::VoxelGrid< pcl::PCLPointCloud2 >, pcl::PassThrough< pcl::PCLPointCloud2 >, pcl::CropBox< pcl::PCLPointCloud2 >, pcl::StatisticalOutlierRemoval< pcl::PCLPointCloud2 >, pcl::RadiusOutlierRemoval< pcl::PCLPointCloud2 >, pcl::ProjectInliers< pcl::PCLPointCloud2 >, pcl::ExtractIndices< pcl::PCLPointCloud2 >, and pcl::RandomSample< pcl::PCLPointCloud2 >.
typedef boost::shared_ptr< Filter<pcl::PCLPointCloud2> > pcl::Filter< pcl::PCLPointCloud2 >::Ptr |
Reimplemented in pcl::RandomSample< pcl::PCLPointCloud2 >.
pcl::Filter< pcl::PCLPointCloud2 >::Filter | ( | bool | extract_removed_indices = false | ) | [inline] |
virtual pcl::Filter< pcl::PCLPointCloud2 >::~Filter | ( | ) | [inline, virtual] |
virtual void pcl::Filter< pcl::PCLPointCloud2 >::applyFilter | ( | PCLPointCloud2 & | output | ) | [protected, pure virtual] |
Abstract filter method.
The implementation needs to set output.{data, row_step, point_step, width, height, is_dense}.
[out] | output | the resultant filtered point cloud |
Implemented in pcl::VoxelGrid< pcl::PCLPointCloud2 >, pcl::PassThrough< pcl::PCLPointCloud2 >, pcl::CropBox< pcl::PCLPointCloud2 >, pcl::StatisticalOutlierRemoval< pcl::PCLPointCloud2 >, pcl::ProjectInliers< pcl::PCLPointCloud2 >, pcl::RadiusOutlierRemoval< pcl::PCLPointCloud2 >, pcl::RandomSample< pcl::PCLPointCloud2 >, and pcl::ExtractIndices< pcl::PCLPointCloud2 >.
void pcl::Filter< pcl::PCLPointCloud2 >::filter | ( | PCLPointCloud2 & | output | ) |
Calls the filtering method and returns the filtered dataset in output.
Base method for feature estimation for all points given in <setInputCloud (), setIndices ()> using the surface in setSearchSurface () and the spatial locator in setSearchMethod ()
[out] | output | the resultant filtered point cloud dataset |
output | the resultant filtered point cloud dataset |
Reimplemented in pcl::FilterIndices< pcl::PCLPointCloud2 >.
Definition at line 50 of file filter.cpp.
const std::string& pcl::Filter< pcl::PCLPointCloud2 >::getClassName | ( | ) | const [inline, protected] |
IndicesConstPtr const pcl::Filter< pcl::PCLPointCloud2 >::getRemovedIndices | ( | ) | [inline] |
void pcl::Filter< pcl::PCLPointCloud2 >::getRemovedIndices | ( | PointIndices & | pi | ) | [inline] |
bool pcl::Filter< pcl::PCLPointCloud2 >::extract_removed_indices_ [protected] |
std::string pcl::Filter< pcl::PCLPointCloud2 >::filter_name_ [protected] |
IndicesPtr pcl::Filter< pcl::PCLPointCloud2 >::removed_indices_ [protected] |