40 #ifndef PCL_SEGMENTATION_COMPARATOR_H_
41 #define PCL_SEGMENTATION_COMPARATOR_H_
43 #include <pcl/point_cloud.h>
52 template <
typename Po
intT>
60 typedef boost::shared_ptr<Comparator<PointT> >
Ptr;
61 typedef boost::shared_ptr<const Comparator<PointT> >
ConstPtr;
84 virtual PointCloudConstPtr
96 compare (
int idx1,
int idx2)
const = 0;
103 #endif //#ifndef _PCL_SEGMENTATION_COMPARATOR_H_
PointCloudConstPtr input_
boost::shared_ptr< const PointCloud< PointT > > ConstPtr
virtual ~Comparator()
Empty destructor for comparator.
boost::shared_ptr< PointCloud< PointT > > Ptr
PointCloud::Ptr PointCloudPtr
virtual void setInputCloud(const PointCloudConstPtr &cloud)
Set the input cloud for the comparator.
boost::shared_ptr< Comparator< PointT > > Ptr
Comparator is the base class for comparators that compare two points given some function.
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.
virtual PointCloudConstPtr getInputCloud() const
Get the input cloud this comparator operates on.
pcl::PointCloud< PointT > PointCloud
PointCloud::ConstPtr PointCloudConstPtr
boost::shared_ptr< const Comparator< PointT > > ConstPtr