A packed HSI specialization of the comparison object. More...
#include <pcl/filters/conditional_removal.h>
Public Types | |
enum | ComponentId { H, S, I } |
using | Ptr = shared_ptr< PackedHSIComparison< PointT > > |
using | ConstPtr = shared_ptr< const PackedHSIComparison< PointT > > |
Public Types inherited from pcl::ComparisonBase< PointT > | |
using | Ptr = shared_ptr< ComparisonBase< PointT > > |
using | ConstPtr = shared_ptr< const ComparisonBase< PointT > > |
Public Member Functions | |
PackedHSIComparison (const std::string &component_name, ComparisonOps::CompareOp op, double compare_val) | |
Construct a PackedHSIComparison. More... |
|
~PackedHSIComparison () | |
Destructor. More... |
|
bool | evaluate (const PointT &point) const override |
Determine the result of this comparison. More... |
|
Public Member Functions inherited from pcl::ComparisonBase< PointT > | |
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... |
|
std::uint32_t | rgb_offset_ |
The offset of the component. More... |
|
Protected Attributes inherited from pcl::ComparisonBase< PointT > | |
bool | capable_ |
True if capable. More... |
|
std::string | field_name_ |
Field name to compare data on. More... |
|
std::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 241 of file conditional_removal.h.
using pcl::PackedHSIComparison< PointT >::ConstPtr = shared_ptr<const PackedHSIComparison<PointT> > |
Definition at line 248 of file conditional_removal.h.
using pcl::PackedHSIComparison< PointT >::Ptr = shared_ptr<PackedHSIComparison<PointT> > |
Definition at line 247 of file conditional_removal.h.
enum pcl::PackedHSIComparison::ComponentId |
Enumerator | |
---|---|
H | |
S | |
I |
Definition at line 267 of file conditional_removal.h.
pcl::PackedHSIComparison< PointT >::PackedHSIComparison | ( | const 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 222 of file conditional_removal.hpp.
References pcl::ComparisonBase< PointT >::capable_, pcl::PackedHSIComparison< PointT >::component_id_, pcl::PCLPointField::FLOAT32, 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.
| inline |
Destructor.
Definition at line 258 of file conditional_removal.h.
| overridevirtual |
Determine the result of this comparison.
point | the point to evaluate |
Implements pcl::ComparisonBase< PointT >.
Definition at line 289 of file conditional_removal.hpp.
References pcl::ComparisonOps::EQ, pcl::ComparisonOps::GE, pcl::ComparisonOps::GT, pcl::ComparisonOps::LE, pcl::ComparisonOps::LT, and M_PI.
| protected |
All types (that we care about) can be represented as a double.
Definition at line 282 of file conditional_removal.h.
| protected |
The ID of the component.
Definition at line 279 of file conditional_removal.h.
Referenced by pcl::PackedHSIComparison< PointT >::PackedHSIComparison().
| protected |
The name of the component.
Definition at line 276 of file conditional_removal.h.
| protected |
The offset of the component.
Definition at line 285 of file conditional_removal.h.
Referenced by pcl::PackedHSIComparison< PointT >::PackedHSIComparison().
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_packed_h_s_i_comparison.html