A packed rgb specialization of the comparison object. More...
#include <pcl/filters/conditional_removal.h>


Public Types | |
| typedef boost::shared_ptr < PackedRGBComparison< PointT > > | Ptr |
| typedef boost::shared_ptr < const PackedRGBComparison < PointT > > | ConstPtr |
Public Member Functions | |
| PackedRGBComparison (std::string component_name, ComparisonOps::CompareOp op, double compare_val) | |
| Construct a PackedRGBComparison. | |
| virtual | ~PackedRGBComparison () |
| Destructor. | |
| virtual bool | evaluate (const PointT &point) const |
| Determine the result of this comparison. | |
Protected Attributes | |
| std::string | component_name_ |
| The name of the component. | |
| uint32_t | component_offset_ |
| The offset of the component. | |
| double | compare_val_ |
| All types (that we care about) can be represented as a double. | |
A packed rgb specialization of the comparison object.
Definition at line 193 of file conditional_removal.h.
| typedef boost::shared_ptr< const PackedRGBComparison<PointT> > pcl::PackedRGBComparison< PointT >::ConstPtr |
Reimplemented from pcl::ComparisonBase< PointT >.
Definition at line 200 of file conditional_removal.h.
| typedef boost::shared_ptr< PackedRGBComparison<PointT> > pcl::PackedRGBComparison< PointT >::Ptr |
Reimplemented from pcl::ComparisonBase< PointT >.
Definition at line 199 of file conditional_removal.h.
| pcl::PackedRGBComparison< PointT >::PackedRGBComparison | ( | std::string | component_name, | |
| ComparisonOps::CompareOp | op, | |||
| double | compare_val | |||
| ) | [inline] |
Construct a PackedRGBComparison.
| component_name | either "r", "g" or "b" | |
| op | the operator to use when making the comparison | |
| compare_val | the constant value to compare the component value too |
Definition at line 139 of file conditional_removal.hpp.
References pcl::ComparisonBase< PointT >::capable_, pcl::PackedRGBComparison< PointT >::component_offset_, pcl::PCLPointField::FLOAT32, pcl::getFields(), pcl::PCLPointField::INT32, pcl::ComparisonBase< PointT >::op_, and pcl::PCLPointField::UINT32.
| virtual pcl::PackedRGBComparison< PointT >::~PackedRGBComparison | ( | ) | [inline, virtual] |
Destructor.
Definition at line 210 of file conditional_removal.h.
| bool pcl::PackedRGBComparison< PointT >::evaluate | ( | const PointT & | point | ) | const [inline, virtual] |
Determine the result of this comparison.
| point | the point to evaluate |
Implements pcl::ComparisonBase< PointT >.
Definition at line 202 of file conditional_removal.hpp.
References pcl::PackedRGBComparison< PointT >::compare_val_, pcl::PackedRGBComparison< PointT >::component_offset_, pcl::ComparisonOps::EQ, pcl::ComparisonOps::GE, pcl::ComparisonOps::GT, pcl::ComparisonOps::LE, pcl::ComparisonOps::LT, and pcl::ComparisonBase< PointT >::op_.
double pcl::PackedRGBComparison< PointT >::compare_val_ [protected] |
All types (that we care about) can be represented as a double.
Definition at line 227 of file conditional_removal.h.
Referenced by pcl::PackedRGBComparison< PointT >::evaluate().
std::string pcl::PackedRGBComparison< PointT >::component_name_ [protected] |
The name of the component.
Definition at line 221 of file conditional_removal.h.
uint32_t pcl::PackedRGBComparison< PointT >::component_offset_ [protected] |
The offset of the component.
Definition at line 224 of file conditional_removal.h.
Referenced by pcl::PackedRGBComparison< PointT >::evaluate(), and pcl::PackedRGBComparison< PointT >::PackedRGBComparison().