Point Cloud Library (PCL)
1.14.1-dev
|
EuclideanClusterExtraction represents a segmentation class for cluster extraction in an Euclidean sense, depending on pcl::gpu::octree More...
#include </__w/1/s/gpu/segmentation/include/pcl/gpu/segmentation/gpu_extract_clusters.h>
Public Types | |
using | PointCloudHost = pcl::PointCloud< PointT > |
using | PointCloudHostPtr = typename PointCloudHost::Ptr |
using | PointCloudHostConstPtr = typename PointCloudHost::ConstPtr |
using | PointIndicesPtr = PointIndices::Ptr |
using | PointIndicesConstPtr = PointIndices::ConstPtr |
using | GPUTree = pcl::gpu::Octree |
using | GPUTreePtr = pcl::gpu::Octree::Ptr |
using | CloudDevice = pcl::gpu::Octree::PointCloud |
Public Member Functions | |
EuclideanClusterExtraction ()=default | |
Empty constructor. More... | |
virtual | ~EuclideanClusterExtraction ()=default |
Default virtual destructor. More... | |
void | setSearchMethod (GPUTreePtr &tree) |
the destructor More... | |
GPUTreePtr | getSearchMethod () |
Get a pointer to the search method used. More... | |
void | setClusterTolerance (double tolerance) |
Set the spatial cluster tolerance as a measure in the L2 Euclidean space. More... | |
double | getClusterTolerance () |
Get the spatial cluster tolerance as a measure in the L2 Euclidean space. More... | |
void | setMinClusterSize (int min_cluster_size) |
Set the minimum number of points that a cluster needs to contain in order to be considered valid. More... | |
int | getMinClusterSize () |
Get the minimum number of points that a cluster needs to contain in order to be considered valid. More... | |
void | setMaxClusterSize (int max_cluster_size) |
Set the maximum number of points that a cluster needs to contain in order to be considered valid. More... | |
int | getMaxClusterSize () |
Get the maximum number of points that a cluster needs to contain in order to be considered valid. More... | |
void | setInput (CloudDevice input) |
void | setHostCloud (PointCloudHostPtr host_cloud) |
void | extract (std::vector< pcl::PointIndices > &clusters) |
extract clusters of a PointCloud given by <setInputCloud(), setIndices()> More... | |
Protected Member Functions | |
virtual std::string | getClassName () const |
Class getName method. More... | |
Protected Attributes | |
CloudDevice | input_ |
the input cloud on the GPU More... | |
PointCloudHostPtr | host_cloud_ |
the original cloud the Host More... | |
GPUTreePtr | tree_ |
A pointer to the spatial search object. More... | |
double | cluster_tolerance_ {0.0} |
The spatial cluster tolerance as a measure in the L2 Euclidean space. More... | |
int | min_pts_per_cluster_ {1} |
The minimum number of points that a cluster needs to contain in order to be considered valid (default = 1). More... | |
int | max_pts_per_cluster_ {std::numeric_limits<int>::max()} |
The maximum number of points that a cluster needs to contain in order to be considered valid (default = MAXINT). More... | |
EuclideanClusterExtraction represents a segmentation class for cluster extraction in an Euclidean sense, depending on pcl::gpu::octree
Definition at line 66 of file gpu_extract_clusters.h.
using pcl::gpu::EuclideanClusterExtraction< PointT >::CloudDevice = pcl::gpu::Octree::PointCloud |
Definition at line 78 of file gpu_extract_clusters.h.
using pcl::gpu::EuclideanClusterExtraction< PointT >::GPUTree = pcl::gpu::Octree |
Definition at line 75 of file gpu_extract_clusters.h.
using pcl::gpu::EuclideanClusterExtraction< PointT >::GPUTreePtr = pcl::gpu::Octree::Ptr |
Definition at line 76 of file gpu_extract_clusters.h.
using pcl::gpu::EuclideanClusterExtraction< PointT >::PointCloudHost = pcl::PointCloud<PointT> |
Definition at line 68 of file gpu_extract_clusters.h.
using pcl::gpu::EuclideanClusterExtraction< PointT >::PointCloudHostConstPtr = typename PointCloudHost::ConstPtr |
Definition at line 70 of file gpu_extract_clusters.h.
using pcl::gpu::EuclideanClusterExtraction< PointT >::PointCloudHostPtr = typename PointCloudHost::Ptr |
Definition at line 69 of file gpu_extract_clusters.h.
using pcl::gpu::EuclideanClusterExtraction< PointT >::PointIndicesConstPtr = PointIndices::ConstPtr |
Definition at line 73 of file gpu_extract_clusters.h.
using pcl::gpu::EuclideanClusterExtraction< PointT >::PointIndicesPtr = PointIndices::Ptr |
Definition at line 72 of file gpu_extract_clusters.h.
|
default |
Empty constructor.
|
virtualdefault |
Default virtual destructor.
void pcl::gpu::EuclideanClusterExtraction< PointT >::extract | ( | std::vector< pcl::PointIndices > & | clusters | ) |
extract clusters of a PointCloud given by <setInputCloud(), setIndices()>
clusters | the resultant point clusters |
Definition at line 189 of file gpu_extract_clusters.hpp.
|
inlineprotectedvirtual |
Class getName method.
Definition at line 206 of file gpu_extract_clusters.h.
|
inline |
Get the spatial cluster tolerance as a measure in the L2 Euclidean space.
Definition at line 124 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::cluster_tolerance_.
|
inline |
Get the maximum number of points that a cluster needs to contain in order to be considered valid.
Definition at line 160 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::max_pts_per_cluster_.
|
inline |
Get the minimum number of points that a cluster needs to contain in order to be considered valid.
Definition at line 142 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::min_pts_per_cluster_.
|
inline |
Get a pointer to the search method used.
Definition at line 106 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::tree_.
|
inline |
Set the spatial cluster tolerance as a measure in the L2 Euclidean space.
tolerance | the spatial cluster tolerance as a measure in the L2 Euclidean space |
Definition at line 116 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::cluster_tolerance_.
|
inline |
Definition at line 172 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::host_cloud_.
|
inline |
Definition at line 166 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::input_.
|
inline |
Set the maximum number of points that a cluster needs to contain in order to be considered valid.
max_cluster_size | the maximum cluster size |
Definition at line 152 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::max_pts_per_cluster_.
|
inline |
Set the minimum number of points that a cluster needs to contain in order to be considered valid.
min_cluster_size | the minimum cluster size |
Definition at line 134 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::min_pts_per_cluster_.
|
inline |
the destructor
Provide a pointer to the search object.
tree | a pointer to the spatial search object. |
Definition at line 97 of file gpu_extract_clusters.h.
References pcl::gpu::EuclideanClusterExtraction< PointT >::tree_.
|
protected |
The spatial cluster tolerance as a measure in the L2 Euclidean space.
Definition at line 194 of file gpu_extract_clusters.h.
Referenced by pcl::gpu::EuclideanClusterExtraction< PointT >::getClusterTolerance(), and pcl::gpu::EuclideanClusterExtraction< PointT >::setClusterTolerance().
|
protected |
the original cloud the Host
Definition at line 188 of file gpu_extract_clusters.h.
Referenced by pcl::gpu::EuclideanClusterExtraction< PointT >::setHostCloud().
|
protected |
the input cloud on the GPU
Definition at line 185 of file gpu_extract_clusters.h.
Referenced by pcl::gpu::EuclideanClusterExtraction< PointT >::setInput().
|
protected |
The maximum number of points that a cluster needs to contain in order to be considered valid (default = MAXINT).
Definition at line 202 of file gpu_extract_clusters.h.
Referenced by pcl::gpu::EuclideanClusterExtraction< PointT >::getMaxClusterSize(), and pcl::gpu::EuclideanClusterExtraction< PointT >::setMaxClusterSize().
|
protected |
The minimum number of points that a cluster needs to contain in order to be considered valid (default = 1).
Definition at line 198 of file gpu_extract_clusters.h.
Referenced by pcl::gpu::EuclideanClusterExtraction< PointT >::getMinClusterSize(), and pcl::gpu::EuclideanClusterExtraction< PointT >::setMinClusterSize().
|
protected |
A pointer to the spatial search object.
Definition at line 191 of file gpu_extract_clusters.h.
Referenced by pcl::gpu::EuclideanClusterExtraction< PointT >::getSearchMethod(), and pcl::gpu::EuclideanClusterExtraction< PointT >::setSearchMethod().