40#include <pcl/common/copy_point.h>
41#include <pcl/gpu/segmentation/gpu_extract_clusters.h>
55template <
typename Po
intT>
void
66 PCL_DEBUG(
"[pcl::gpu::extractEuclideanClusters]\n");
67 std::vector<bool>
processed (host_cloud_->size (),
false);
86 for (std::size_t i = 0; i < host_cloud_->size (); ++i)
128 std::copy(
cpu_tmp.begin(),
cpu_tmp.end(), std::back_inserter(data));
151 if(data.
size () == 1)
166 PCL_DEBUG(
" data.size: %i, foundpoints: %i, previous: %i", data.
size() ,
179 r.
header = host_cloud_->header;
185template <
typename Po
intT>
void
194 tree_.setCloud(input_);
197 if (!tree_->isBuilt())
210 PCL_DEBUG(
"INFO: end of extractEuclideanClusters\n");
215#define PCL_INSTANTIATE_extractEuclideanClusters(T) template void PCL_EXPORTS pcl::gpu::extractEuclideanClusters<T> (const typename pcl::PointCloud<T>::Ptr &, const pcl::gpu::Octree::Ptr &,float, std::vector<PointIndices> &, unsigned int, unsigned int);
216#define PCL_INSTANTIATE_EuclideanClusterExtraction(T) template class PCL_EXPORTS pcl::gpu::EuclideanClusterExtraction<T>;
Iterator class for point clouds with or without given indices.
std::size_t size() const
Size of the range the iterator is going through.
std::vector< PointT, Eigen::aligned_allocator< PointT > > VectorType
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< Octree > Ptr
Types.
void copyPoint(const PointInT &point_in, PointOutT &point_out)
Copy the fields of a source point into a target point.
void economical_download(const pcl::gpu::NeighborIndices &source_indices, const pcl::Indices &buffer_indices, std::size_t buffer_size, pcl::Indices &downloaded_indices)
void extractEuclideanClusters(const typename pcl::PointCloud< PointT >::Ptr &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)
A point structure representing Euclidean xyz coordinates.