42 #include <pcl/memory.h>
43 #include <pcl/pcl_macros.h>
44 #include <pcl/point_cloud.h>
53 template <
typename Po
intT>
61 using Ptr = shared_ptr<Comparator<PointT> >;
62 using ConstPtr = shared_ptr<const Comparator<PointT> >;
85 virtual PointCloudConstPtr
97 compare (
int idx1,
int idx2)
const = 0;
shared_ptr< PointCloud< PointT > > Ptr
typename PointCloud::Ptr PointCloudPtr
typename PointCloud::ConstPtr PointCloudConstPtr
virtual void setInputCloud(const PointCloudConstPtr &cloud)
Set the input cloud for the comparator.
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Comparator is the base class for comparators that compare two points given some function.
shared_ptr< const Comparator< 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. ...
shared_ptr< const PointCloud< PointT > > ConstPtr
shared_ptr< Comparator< PointT > > Ptr
PointCloudConstPtr input_
virtual ~Comparator()
Empty destructor for comparator.
virtual bool compare(int idx1, int idx2) const =0
Compares the two points in the input cloud designated by these two indices.
Comparator()
Empty constructor for comparator.