Point Cloud Library (PCL)
1.10.0
|
38 #include <pcl/pcl_base.h>
39 #include <pcl/search/pcl_search.h>
55 template <
typename Po
intT>
void
58 float tolerance, std::vector<std::vector<PointIndices> > &labeled_clusters,
59 unsigned int min_pts_per_cluster = 1,
unsigned int max_pts_per_cluster = std::numeric_limits<unsigned int>::max (),
60 unsigned int max_label = std::numeric_limits<unsigned int>::max ());
69 template <
typename Po
intT>
149 extract (std::vector<std::vector<PointIndices> > &labeled_clusters);
174 virtual std::string
getClassName ()
const {
return (
"LabeledEuclideanClusterExtraction"); }
188 #ifdef PCL_NO_PRECOMPILE
189 #include <pcl/segmentation/impl/extract_labeled_clusters.hpp>
This file defines compatibility wrappers for low level I/O functions.
typename PointCloud::ConstPtr PointCloudConstPtr
PointCloudConstPtr input_
The input point cloud dataset.
typename PointCloud::Ptr PointCloudPtr
PointIndices::ConstPtr PointIndicesConstPtr
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< const ::pcl::PointIndices > ConstPtr
shared_ptr< pcl::search::Search< PointT > > Ptr
std::vector< int > indices
shared_ptr< ::pcl::PointIndices > Ptr
bool compareLabeledPointClusters(const pcl::PointIndices &a, const pcl::PointIndices &b)
Sort clusters method (for std::sort).
shared_ptr< PointCloud< PointT > > Ptr
bool deinitCompute()
This method should get called after finishing the actual computation.
IndicesPtr indices_
A pointer to the vector of point indices to use.
shared_ptr< const PointCloud< PointT > > ConstPtr
PointIndices::Ptr PointIndicesPtr
bool initCompute()
This method should get called before starting the actual computation.
void extractLabeledEuclideanClusters(const PointCloud< PointT > &cloud, const typename search::Search< PointT >::Ptr &tree, float tolerance, std::vector< std::vector< PointIndices > > &labeled_clusters, unsigned int min_pts_per_cluster=1, unsigned int max_pts_per_cluster=std::numeric_limits< unsigned int >::max(), unsigned int max_label=std::numeric_limits< unsigned int >::max())
Decompose a region of space into clusters based on the Euclidean distance between points.