Comparator is the base class for comparators that compare two points given some function. More...
#include <pcl/segmentation/comparator.h>
Public Types | |
using | PointCloud = pcl::PointCloud< PointT > |
using | PointCloudPtr = typename PointCloud::Ptr |
using | PointCloudConstPtr = typename PointCloud::ConstPtr |
using | Ptr = shared_ptr< Comparator< PointT > > |
using | ConstPtr = shared_ptr< const Comparator< PointT > > |
Public Member Functions | |
Comparator () | |
Empty constructor for comparator. More... |
|
virtual | ~Comparator () |
Empty destructor for comparator. More... |
|
virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
Set the input cloud for the comparator. More... |
|
virtual PointCloudConstPtr | getInputCloud () const |
Get the input cloud this comparator operates on. More... |
|
virtual bool | compare (int idx1, int idx2) const =0 |
Compares the two points in the input cloud designated by these two indices. More... |
|
Protected Attributes | |
PointCloudConstPtr | input_ |
Comparator is the base class for comparators that compare two points given some function.
Currently intended for use with OrganizedConnectedComponentSegmentation
Definition at line 54 of file comparator.h.
using pcl::Comparator< PointT >::ConstPtr = shared_ptr<const Comparator<PointT> > |
Definition at line 62 of file comparator.h.
using pcl::Comparator< PointT >::PointCloud = pcl::PointCloud<PointT> |
Definition at line 57 of file comparator.h.
using pcl::Comparator< PointT >::PointCloudConstPtr = typename PointCloud::ConstPtr |
Definition at line 59 of file comparator.h.
using pcl::Comparator< PointT >::PointCloudPtr = typename PointCloud::Ptr |
Definition at line 58 of file comparator.h.
using pcl::Comparator< PointT >::Ptr = shared_ptr<Comparator<PointT> > |
Definition at line 61 of file comparator.h.
| inline |
Empty constructor for comparator.
Definition at line 65 of file comparator.h.
| inlinevirtual |
Empty destructor for comparator.
Definition at line 71 of file comparator.h.
| pure virtual |
Compares the two points in the input cloud designated by these two indices.
This is pure virtual and must be implemented by subclasses with some comparison function.
[in] | idx1 | the index of the first point. |
[in] | idx2 | the index of the second point. |
Implemented in pcl::GroundPlaneComparator< PointT, PointNT >, pcl::PlaneCoefficientComparator< PointT, PointNT >, pcl::PlaneRefinementComparator< PointT, PointNT, PointLT >, pcl::EdgeAwarePlaneComparator< PointT, PointNT >, pcl::EuclideanClusterComparator< PointT, PointLT >, pcl::RGBPlaneCoefficientComparator< PointT, PointNT >, and pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >.
| inlinevirtual |
Get the input cloud this comparator operates on.
Definition at line 86 of file comparator.h.
References pcl::Comparator< PointT >::input_.
| inlinevirtual |
Set the input cloud for the comparator.
[in] | cloud | the point cloud this comparator will operate on |
Reimplemented in pcl::GroundPlaneComparator< PointT, PointNT >, pcl::PlaneCoefficientComparator< PointT, PointNT >, and pcl::EuclideanClusterComparator< PointT, PointLT >.
Definition at line 79 of file comparator.h.
References pcl::Comparator< PointT >::input_.
| protected |
Definition at line 100 of file comparator.h.
Referenced by pcl::EuclideanClusterComparator< PointT, PointLT >::compare(), pcl::Comparator< PointT >::getInputCloud(), pcl::Comparator< PointT >::setInputCloud(), pcl::EuclideanClusterComparator< PointT, PointLT >::setInputCloud(), pcl::PlaneCoefficientComparator< PointT, PointNT >::setInputCloud(), and pcl::GroundPlaneComparator< PointT, PointNT >::setInputCloud().
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_comparator.html