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> >;
83 virtual PointCloudConstPtr
Comparator is the base class for comparators that compare two points given some function.
virtual void setInputCloud(const PointCloudConstPtr &cloud)
Set the input cloud for the comparator.
PointCloudConstPtr input_
shared_ptr< Comparator< PointT > > Ptr
typename PointCloud::ConstPtr PointCloudConstPtr
shared_ptr< const Comparator< PointT > > ConstPtr
virtual bool compare(int idx1, int idx2) const =0
Compares the two points in the input cloud designated by these two indices.
virtual ~Comparator()=default
Empty destructor for comparator.
virtual PointCloudConstPtr getInputCloud() const
Get the input cloud this comparator operates on.
typename PointCloud::Ptr PointCloudPtr
Comparator()
Empty constructor for comparator.
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.