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_
PointCloud::ConstPtr PointCloudConstPtr
virtual void setInputCloud(const PointCloudConstPtr &cloud)
Set the input cloud for the comparator.
Comparator is the base class for comparators that compare two points given some function.
boost::shared_ptr< PointCloud< PointT > > Ptr
boost::shared_ptr< Comparator< PointT > > Ptr
boost::shared_ptr< const Comparator< PointT > > ConstPtr
boost::shared_ptr< const PointCloud< PointT > > ConstPtr
virtual PointCloudConstPtr getInputCloud() const
Get the input cloud this comparator operates on.
PointCloud represents the base class in PCL for storing collections of 3D points. ...
PointCloud::Ptr PointCloudPtr
pcl::PointCloud< PointT > PointCloud
PointCloudConstPtr input_
virtual bool compare(int idx1, int idx2) const =0
Compares the two points in the input cloud designated by these two indices.
virtual ~Comparator()
Empty destructor for comparator.
Comparator()
Empty constructor for comparator.