40 #ifndef PCL_GPU_EXTRACT_LABELED_CLUSTERS_H_ 41 #define PCL_GPU_EXTRACT_LABELED_CLUSTERS_H_ 43 #include <pcl/point_types.h> 44 #include <pcl/point_cloud.h> 45 #include <pcl/PointIndices.h> 46 #include <pcl/pcl_macros.h> 47 #include <pcl/gpu/octree/octree.hpp> 48 #include <pcl/gpu/containers/impl/device_array.hpp> 54 template <
typename Po
intT>
void 58 std::vector<PointIndices> &clusters,
59 unsigned int min_pts_per_cluster,
60 unsigned int max_pts_per_cluster);
66 template <
typename Po
intT>
129 void extract (std::vector<PointIndices> &clusters);
151 virtual std::string
getClassName ()
const {
return (
"gpu::EuclideanLabeledClusterExtraction"); }
164 #endif //PCL_GPU_EXTRACT_LABELED_CLUSTERS_H_
boost::shared_ptr< Octree > Ptr
Types.
std::vector< int > indices
Octree implementation on GPU.
void extractLabeledEuclideanClusters(const boost::shared_ptr< pcl::PointCloud< PointT > > &host_cloud_, const pcl::gpu::Octree::Ptr &tree, float tolerance, std::vector< PointIndices > &clusters, unsigned int min_pts_per_cluster, unsigned int max_pts_per_cluster)
boost::shared_ptr< PointCloud< PointT > > Ptr
bool compareLabeledPointClusters(const pcl::PointIndices &a, const pcl::PointIndices &b)
Sort clusters method (for std::sort).
A point structure representing Euclidean xyz coordinates.
boost::shared_ptr< const PointCloud< PointT > > ConstPtr
PointCloud represents the base class in PCL for storing collections of 3D points. ...
boost::shared_ptr< ::pcl::PointIndices > Ptr
boost::shared_ptr< ::pcl::PointIndices const > ConstPtr