Point Cloud Library (PCL)
1.8.0
|
A packed HSI specialization of the comparison object. More...
#include <pcl/filters/conditional_removal.h>
Public Types | |
enum | ComponentId { H, S, I } |
typedef boost::shared_ptr< PackedHSIComparison< PointT > > | Ptr |
typedef boost::shared_ptr< const PackedHSIComparison< PointT > > | ConstPtr |
![]() | |
typedef boost::shared_ptr< ComparisonBase< PointT > > | Ptr |
typedef boost::shared_ptr< const ComparisonBase< PointT > > | ConstPtr |
Public Member Functions | |
PackedHSIComparison (std::string component_name, ComparisonOps::CompareOp op, double compare_val) | |
Construct a PackedHSIComparison. More... | |
virtual | ~PackedHSIComparison () |
Destructor. More... | |
virtual bool | evaluate (const PointT &point) const |
Determine the result of this comparison. More... | |
![]() | |
ComparisonBase () | |
Constructor. More... | |
virtual | ~ComparisonBase () |
Destructor. More... | |
bool | isCapable () const |
Return if the comparison is capable. More... | |
Protected Attributes | |
std::string | component_name_ |
The name of the component. More... | |
ComponentId | component_id_ |
The ID of the component. More... | |
double | compare_val_ |
All types (that we care about) can be represented as a double. More... | |
uint32_t | rgb_offset_ |
The offset of the component. More... | |
![]() | |
bool | capable_ |
True if capable. More... | |
std::string | field_name_ |
Field name to compare data on. More... | |
uint32_t | offset_ |
The data offset. More... | |
ComparisonOps::CompareOp | op_ |
The comparison operator type. More... | |
A packed HSI specialization of the comparison object.
Definition at line 240 of file conditional_removal.h.
typedef boost::shared_ptr< const PackedHSIComparison<PointT> > pcl::PackedHSIComparison< PointT >::ConstPtr |
Definition at line 247 of file conditional_removal.h.
typedef boost::shared_ptr< PackedHSIComparison<PointT> > pcl::PackedHSIComparison< PointT >::Ptr |
Definition at line 246 of file conditional_removal.h.
enum pcl::PackedHSIComparison::ComponentId |
Enumerator | |
---|---|
H | |
S | |
I |
Definition at line 266 of file conditional_removal.h.
pcl::PackedHSIComparison< PointT >::PackedHSIComparison | ( | std::string | component_name, |
ComparisonOps::CompareOp | op, | ||
double | compare_val | ||
) |
Construct a PackedHSIComparison.
component_name | either "h", "s" or "i" |
op | the operator to use when making the comparison |
compare_val | the constant value to compare the component value too |
Definition at line 232 of file conditional_removal.hpp.
References pcl::ComparisonBase< PointT >::capable_, pcl::PackedHSIComparison< PointT >::component_id_, pcl::PCLPointField::FLOAT32, pcl::getFields(), pcl::PackedHSIComparison< PointT >::H, pcl::PackedHSIComparison< PointT >::I, pcl::PCLPointField::INT32, pcl::ComparisonBase< PointT >::op_, pcl::PackedHSIComparison< PointT >::rgb_offset_, pcl::PackedHSIComparison< PointT >::S, and pcl::PCLPointField::UINT32.
|
inlinevirtual |
Destructor.
Definition at line 257 of file conditional_removal.h.
|
virtual |
Determine the result of this comparison.
point | the point to evaluate |
Implements pcl::ComparisonBase< PointT >.
Definition at line 302 of file conditional_removal.hpp.
References pcl::PackedHSIComparison< PointT >::compare_val_, pcl::PackedHSIComparison< PointT >::component_id_, pcl::ComparisonOps::EQ, pcl::ComparisonOps::GE, pcl::ComparisonOps::GT, pcl::PackedHSIComparison< PointT >::H, pcl::PackedHSIComparison< PointT >::I, pcl::ComparisonOps::LE, pcl::ComparisonOps::LT, pcl::ComparisonBase< PointT >::op_, pcl::PackedHSIComparison< PointT >::rgb_offset_, and pcl::PackedHSIComparison< PointT >::S.
|
protected |
All types (that we care about) can be represented as a double.
Definition at line 281 of file conditional_removal.h.
Referenced by pcl::PackedHSIComparison< PointT >::evaluate().
|
protected |
The ID of the component.
Definition at line 278 of file conditional_removal.h.
Referenced by pcl::PackedHSIComparison< PointT >::evaluate(), and pcl::PackedHSIComparison< PointT >::PackedHSIComparison().
|
protected |
The name of the component.
Definition at line 275 of file conditional_removal.h.
|
protected |
The offset of the component.
Definition at line 284 of file conditional_removal.h.
Referenced by pcl::PackedHSIComparison< PointT >::evaluate(), and pcl::PackedHSIComparison< PointT >::PackedHSIComparison().