|
Point Cloud Library (PCL)
1.6.0
|
ConditionalRemoval filters data that satisfies certain conditions. More...
#include <pcl/filters/conditional_removal.h>


Public Types | |
| typedef pcl::ConditionBase < PointT > | ConditionBase |
| typedef ConditionBase::Ptr | ConditionBasePtr |
| typedef ConditionBase::ConstPtr | ConditionBaseConstPtr |
| typedef boost::shared_ptr < Filter< PointT > > | Ptr |
| typedef boost::shared_ptr < const Filter< PointT > > | ConstPtr |
| typedef PointIndices::Ptr | PointIndicesPtr |
| typedef PointIndices::ConstPtr | PointIndicesConstPtr |
Public Member Functions | |
| ConditionalRemoval (int extract_removed_indices=false) | |
| the default constructor. | |
| ConditionalRemoval (ConditionBasePtr condition, bool extract_removed_indices=false) | |
| a constructor that includes the condition. | |
| void | setKeepOrganized (bool val) |
| Set whether the filtered points should be kept and set to the value given through setUserFilterValue (default: NaN), or removed from the PointCloud, thus potentially breaking its organized structure. | |
| bool | getKeepOrganized () const |
| void | setUserFilterValue (float val) |
| Provide a value that the filtered points should be set to instead of removing them. | |
| void | setCondition (ConditionBasePtr condition) |
| Set the condition that the filter will use. | |
| IndicesConstPtr const | getRemovedIndices () |
| Get the point indices being removed. | |
| void | filter (PointCloud &output) |
| Calls the filtering method and returns the filtered dataset in output. | |
| virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
| Provide a pointer to the input dataset. | |
| PointCloudConstPtr 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 IndicesConstPtr &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. | |
| void | setIndices (size_t row_start, size_t col_start, size_t nb_rows, size_t nb_cols) |
| Set the indices for the points laying within an interest region of the point cloud. | |
| IndicesPtr const | getIndices () |
| Get a pointer to the vector of indices used. | |
| const PointT & | operator[] (size_t pos) |
| Override PointCloud operator[] to shorten code. | |
ConditionalRemoval filters data that satisfies certain conditions.
A ConditionalRemoval must be provided a condition. There are two types of conditions: ConditionAnd and ConditionOr. Conditions require one or more comparisons and/or other conditions. A comparison has a name, a comparison operator, and a value.
An ConditionAnd will evaluate to true when ALL of its encapsulated comparisons and conditions are true.
An ConditionOr will evaluate to true when ANY of its encapsulated comparisons and conditions are true.
Depending on the derived type of the comparison, the name can correspond to a PointCloud field name, or a color component in rgb color space or hsi color space.
Here is an example usage: // Build the condition pcl::ConditionAnd<PointT>::Ptr range_cond (new pcl::ConditionAnd<PointT> ()); range_cond->addComparison (pcl::FieldComparison<PointT>::Ptr (new pcl::FieldComparison<PointT>("z", pcl::ComparisonOps::LT, 2.0))); range_cond->addComparison (pcl::FieldComparison<PointT>::Ptr (new pcl::FieldComparison<PointT>("z", pcl::ComparisonOps::GT, 0.0))); // Build the filter pcl::ConditionalRemoval<PointT> range_filt; range_filt.setCondition (range_cond); range_filt.setKeepOrganized (false);
Definition at line 575 of file conditional_removal.h.
| typedef pcl::ConditionBase<PointT> pcl::ConditionalRemoval< PointT >::ConditionBase |
Definition at line 589 of file conditional_removal.h.
| typedef ConditionBase::ConstPtr pcl::ConditionalRemoval< PointT >::ConditionBaseConstPtr |
Definition at line 591 of file conditional_removal.h.
| typedef ConditionBase::Ptr pcl::ConditionalRemoval< PointT >::ConditionBasePtr |
Definition at line 590 of file conditional_removal.h.
typedef boost::shared_ptr< const Filter<PointT> > pcl::Filter< PointT >::ConstPtr [inherited] |
typedef PointIndices::ConstPtr pcl::PCLBase< PointT >::PointIndicesConstPtr [inherited] |
Reimplemented in pcl::EuclideanClusterExtraction< PointT >, pcl::ExtractPolygonalPrismData< PointT >, pcl::SegmentDifferences< PointT >, pcl::LabeledEuclideanClusterExtraction< PointT >, pcl::SampleConsensusInitialAlignment< PointSource, PointTarget, FeatureT >, and pcl::PCA< PointT >.
Definition at line 79 of file pcl_base.h.
typedef PointIndices::Ptr pcl::PCLBase< PointT >::PointIndicesPtr [inherited] |
Reimplemented in pcl::EuclideanClusterExtraction< PointT >, pcl::ExtractPolygonalPrismData< PointT >, pcl::SegmentDifferences< PointT >, pcl::LabeledEuclideanClusterExtraction< PointT >, pcl::SampleConsensusInitialAlignment< PointSource, PointTarget, FeatureT >, and pcl::PCA< PointT >.
Definition at line 78 of file pcl_base.h.
typedef boost::shared_ptr< Filter<PointT> > pcl::Filter< PointT >::Ptr [inherited] |
| pcl::ConditionalRemoval< PointT >::ConditionalRemoval | ( | int | extract_removed_indices = false | ) | [inline] |
the default constructor.
All ConditionalRemovals require a condition which can be set using the setCondition method
| extract_removed_indices | extract filtered indices from indices vector |
Definition at line 599 of file conditional_removal.h.
| pcl::ConditionalRemoval< PointT >::ConditionalRemoval | ( | ConditionBasePtr | condition, |
| bool | extract_removed_indices = false |
||
| ) | [inline] |
a constructor that includes the condition.
| condition | the condition that each point must satisfy to avoid being removed by the filter |
| extract_removed_indices | extract filtered indices from indices vector |
Definition at line 611 of file conditional_removal.h.
| void pcl::Filter< PointT >::filter | ( | PointCloud & | output | ) | [inline, inherited] |
Calls the filtering method and returns the filtered dataset in output.
| [out] | output | the resultant filtered point cloud dataset |
Reimplemented in pcl::FilterIndices< PointT >.
| IndicesPtr const pcl::PCLBase< PointT >::getIndices | ( | ) | [inline, inherited] |
Get a pointer to the vector of indices used.
Definition at line 190 of file pcl_base.h.
| PointCloudConstPtr const pcl::PCLBase< PointT >::getInputCloud | ( | ) | [inline, inherited] |
Get a pointer to the input point cloud dataset.
Definition at line 107 of file pcl_base.h.
| bool pcl::ConditionalRemoval< PointT >::getKeepOrganized | ( | ) | const [inline] |
Definition at line 634 of file conditional_removal.h.
| IndicesConstPtr const pcl::Filter< PointT >::getRemovedIndices | ( | ) | [inline, inherited] |
Get the point indices being removed.
Reimplemented in pcl::FilterIndices< PointT >.
| const PointT& pcl::PCLBase< PointT >::operator[] | ( | size_t | pos | ) | [inline, inherited] |
Override PointCloud operator[] to shorten code.
| pos | position in indices_ vector |
Definition at line 197 of file pcl_base.h.
| void pcl::ConditionalRemoval< PointT >::setCondition | ( | ConditionBasePtr | condition | ) |
Set the condition that the filter will use.
| condition | each point must satisfy this condition to avoid being removed by the filter |
All ConditionalRemovals require a condition
Definition at line 663 of file conditional_removal.hpp.
| void pcl::PCLBase< PointT >::setIndices | ( | const IndicesPtr & | indices | ) | [inline, inherited] |
Provide a pointer to the vector of indices that represents the input data.
| indices | a pointer to the vector of indices that represents the input data. |
Definition at line 113 of file pcl_base.h.
| void pcl::PCLBase< PointT >::setIndices | ( | const IndicesConstPtr & | indices | ) | [inline, inherited] |
Provide a pointer to the vector of indices that represents the input data.
| indices | a pointer to the vector of indices that represents the input data. |
Definition at line 124 of file pcl_base.h.
| void pcl::PCLBase< PointT >::setIndices | ( | const PointIndicesConstPtr & | indices | ) | [inline, inherited] |
Provide a pointer to the vector of indices that represents the input data.
| indices | a pointer to the vector of indices that represents the input data. |
Definition at line 135 of file pcl_base.h.
| void pcl::PCLBase< PointT >::setIndices | ( | size_t | row_start, |
| size_t | col_start, | ||
| size_t | nb_rows, | ||
| size_t | nb_cols | ||
| ) | [inline, inherited] |
Set the indices for the points laying within an interest region of the point cloud.
| row_start | the offset on rows |
| col_start | the offset on columns |
| nb_rows | the number of rows to be considered row_start included |
| nb_cols | the number of columns to be considered col_start included |
Definition at line 151 of file pcl_base.h.
| virtual void pcl::PCLBase< PointT >::setInputCloud | ( | const PointCloudConstPtr & | cloud | ) | [inline, virtual, inherited] |
Provide a pointer to the input dataset.
| cloud | the const boost shared pointer to a PointCloud message |
Reimplemented in pcl::PCA< PointT >.
Definition at line 103 of file pcl_base.h.
| void pcl::ConditionalRemoval< PointT >::setKeepOrganized | ( | bool | val | ) | [inline] |
Set whether the filtered points should be kept and set to the value given through setUserFilterValue (default: NaN), or removed from the PointCloud, thus potentially breaking its organized structure.
By default, points are removed.
| val | set to true whether the filtered points should be kept and set to a given user value (default: NaN) |
Definition at line 628 of file conditional_removal.h.
| void pcl::ConditionalRemoval< PointT >::setUserFilterValue | ( | float | val | ) | [inline] |
Provide a value that the filtered points should be set to instead of removing them.
Used in conjunction with setKeepOrganized ().
| val | the user given value that the filtered point dimensions should be set to |
Definition at line 645 of file conditional_removal.h.
1.7.6.1