Comparator is the base class for comparators that compare two points given some function. Currently intended for use with OrganizedConnectedComponentSegmentation. More...
#include <comparator.h>
Public Types | |
typedef boost::shared_ptr < const Comparator< PointT > > | ConstPtr |
typedef pcl::PointCloud< PointT > | PointCloud |
typedef PointCloud::ConstPtr | PointCloudConstPtr |
typedef PointCloud::Ptr | PointCloudPtr |
typedef boost::shared_ptr < Comparator< PointT > > | Ptr |
Public Member Functions | |
Comparator () | |
Empty constructor for comparator. | |
virtual bool | compare (int idx1, int idx2) const =0 |
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. | |
virtual PointCloudConstPtr | getInputCloud () const |
Get the input cloud this comparator operates on. | |
virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
Set the input cloud for the comparator. | |
virtual | ~Comparator () |
Empty destructor for comparator. | |
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 53 of file comparator.h.
typedef boost::shared_ptr<const Comparator<PointT> > pcl::Comparator< PointT >::ConstPtr |
Reimplemented in pcl::PlaneRefinementComparator< PointT, PointNT, PointLT >, pcl::EuclideanClusterComparator< PointT, PointNT, PointLT >, pcl::EuclideanClusterComparator< PointT, pcl::Normal, pcl::Label >, pcl::EdgeAwarePlaneComparator< PointT, PointNT >, pcl::PlaneCoefficientComparator< PointT, PointNT >, pcl::RGBPlaneCoefficientComparator< PointT, PointNT >, pcl::EdgeAwarePlaneComparator< PointT, Normal >, pcl::EdgeAwarePlaneComparator< PointT, pcl::Normal >, pcl::PlaneCoefficientComparator< PointT, Normal >, pcl::PlaneCoefficientComparator< PointT, pcl::Normal >, pcl::RGBPlaneCoefficientComparator< PointT, pcl::Normal >, pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >, and pcl::EuclideanPlaneCoefficientComparator< PointT, pcl::Normal >.
Definition at line 61 of file comparator.h.
typedef pcl::PointCloud<PointT> pcl::Comparator< PointT >::PointCloud |
Reimplemented in pcl::EdgeAwarePlaneComparator< PointT, PointNT >, pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >, pcl::PlaneCoefficientComparator< PointT, PointNT >, pcl::PlaneRefinementComparator< PointT, PointNT, PointLT >, pcl::RGBPlaneCoefficientComparator< PointT, PointNT >, pcl::EdgeAwarePlaneComparator< PointT, Normal >, pcl::EdgeAwarePlaneComparator< PointT, pcl::Normal >, pcl::EuclideanPlaneCoefficientComparator< PointT, pcl::Normal >, pcl::PlaneCoefficientComparator< PointT, Normal >, pcl::PlaneCoefficientComparator< PointT, pcl::Normal >, pcl::RGBPlaneCoefficientComparator< PointT, pcl::Normal >, pcl::EuclideanClusterComparator< PointT, PointNT, PointLT >, and pcl::EuclideanClusterComparator< PointT, pcl::Normal, pcl::Label >.
Definition at line 56 of file comparator.h.
typedef PointCloud::ConstPtr pcl::Comparator< PointT >::PointCloudConstPtr |
Reimplemented in pcl::EdgeAwarePlaneComparator< PointT, PointNT >, pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >, pcl::PlaneCoefficientComparator< PointT, PointNT >, pcl::PlaneRefinementComparator< PointT, PointNT, PointLT >, pcl::RGBPlaneCoefficientComparator< PointT, PointNT >, pcl::EdgeAwarePlaneComparator< PointT, Normal >, pcl::EdgeAwarePlaneComparator< PointT, pcl::Normal >, pcl::EuclideanPlaneCoefficientComparator< PointT, pcl::Normal >, pcl::PlaneCoefficientComparator< PointT, Normal >, pcl::PlaneCoefficientComparator< PointT, pcl::Normal >, pcl::RGBPlaneCoefficientComparator< PointT, pcl::Normal >, pcl::EuclideanClusterComparator< PointT, PointNT, PointLT >, and pcl::EuclideanClusterComparator< PointT, pcl::Normal, pcl::Label >.
Definition at line 58 of file comparator.h.
typedef PointCloud::Ptr pcl::Comparator< PointT >::PointCloudPtr |
Definition at line 57 of file comparator.h.
typedef boost::shared_ptr<Comparator<PointT> > pcl::Comparator< PointT >::Ptr |
Reimplemented in pcl::PlaneRefinementComparator< PointT, PointNT, PointLT >, pcl::EuclideanClusterComparator< PointT, PointNT, PointLT >, pcl::EuclideanClusterComparator< PointT, pcl::Normal, pcl::Label >, pcl::EdgeAwarePlaneComparator< PointT, PointNT >, pcl::PlaneCoefficientComparator< PointT, PointNT >, pcl::RGBPlaneCoefficientComparator< PointT, PointNT >, pcl::EdgeAwarePlaneComparator< PointT, Normal >, pcl::EdgeAwarePlaneComparator< PointT, pcl::Normal >, pcl::PlaneCoefficientComparator< PointT, Normal >, pcl::PlaneCoefficientComparator< PointT, pcl::Normal >, pcl::RGBPlaneCoefficientComparator< PointT, pcl::Normal >, pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >, and pcl::EuclideanPlaneCoefficientComparator< PointT, pcl::Normal >.
Definition at line 60 of file comparator.h.
pcl::Comparator< PointT >::Comparator | ( | ) | [inline] |
Empty constructor for comparator.
Definition at line 64 of file comparator.h.
virtual pcl::Comparator< PointT >::~Comparator | ( | ) | [inline, virtual] |
Empty destructor for comparator.
Definition at line 70 of file comparator.h.
virtual bool pcl::Comparator< PointT >::compare | ( | int | idx1, |
int | idx2 | ||
) | const [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::PlaneCoefficientComparator< PointT, PointNT >, pcl::PlaneCoefficientComparator< PointT, Normal >, pcl::PlaneCoefficientComparator< PointT, pcl::Normal >, pcl::PlaneRefinementComparator< PointT, PointNT, PointLT >, pcl::EuclideanClusterComparator< PointT, PointNT, PointLT >, pcl::EuclideanClusterComparator< PointT, pcl::Normal, pcl::Label >, pcl::EdgeAwarePlaneComparator< PointT, PointNT >, pcl::EdgeAwarePlaneComparator< PointT, Normal >, pcl::EdgeAwarePlaneComparator< PointT, pcl::Normal >, pcl::RGBPlaneCoefficientComparator< PointT, PointNT >, pcl::RGBPlaneCoefficientComparator< PointT, pcl::Normal >, pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >, and pcl::EuclideanPlaneCoefficientComparator< PointT, pcl::Normal >.
virtual PointCloudConstPtr pcl::Comparator< PointT >::getInputCloud | ( | ) | const [inline, virtual] |
Get the input cloud this comparator operates on.
Definition at line 85 of file comparator.h.
virtual void pcl::Comparator< PointT >::setInputCloud | ( | const PointCloudConstPtr & | cloud | ) | [inline, virtual] |
Set the input cloud for the comparator.
[in] | cloud | the point cloud this comparator will operate on |
Reimplemented in pcl::PlaneCoefficientComparator< PointT, PointNT >, pcl::PlaneCoefficientComparator< PointT, Normal >, pcl::PlaneCoefficientComparator< PointT, pcl::Normal >, pcl::EuclideanClusterComparator< PointT, PointNT, PointLT >, and pcl::EuclideanClusterComparator< PointT, pcl::Normal, pcl::Label >.
Definition at line 78 of file comparator.h.
PointCloudConstPtr pcl::Comparator< PointT >::input_ [protected] |
Definition at line 99 of file comparator.h.