Point Cloud Library (PCL)
1.11.1-dev
|
43 #include <pcl/point_cloud.h>
44 #include <pcl/PointIndices.h>
55 PointIndices &clusters_in,
56 PointIndices &clusters_out,
57 float delta_hue = 0.0);
135 virtual std::string
getClassName ()
const {
return (
"gpu::SeededHueSegmentation"); }
Defines all the PCL and non-PCL macros used.
DeviceArray< PointType > PointCloud
Point cloud supported.
PointCloudHostPtr host_cloud_
the original cloud the Host
PointIndices::Ptr PointIndicesPtr
void setClusterTolerance(double tolerance)
Set the spatial cluster tolerance as a measure in the L2 Euclidean space.
CloudDevice input_
the input cloud on the GPU
void setHostCloud(PointCloudHostPtr host_cloud)
GPUTreePtr tree_
A pointer to the spatial search object.
Octree implementation on GPU.
float getDeltaHue()
Get the tolerance on the hue.
SeededHueSegmentation()
Empty constructor.
double getClusterTolerance()
Get the spatial cluster tolerance as a measure in the L2 Euclidean space.
float delta_hue_
The allowed difference on the hue.
void seededHueSegmentation(const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &host_cloud_, const pcl::gpu::Octree::Ptr &tree, float tolerance, PointIndices &clusters_in, PointIndices &clusters_out, float delta_hue=0.0)
double cluster_tolerance_
The spatial cluster tolerance as a measure in the L2 Euclidean space.
void segment(PointIndices &indices_in, PointIndices &indices_out)
Cluster extraction in a PointCloud given by <setInputCloud (), setIndices ()>
bool comparePointClusters(const pcl::PointIndices &a, const pcl::PointIndices &b)
Sort clusters method (for std::sort).
void setSearchMethod(const GPUTreePtr &tree)
Provide a pointer to the search object.
shared_ptr< const ::pcl::PointIndices > ConstPtr
A point structure representing Euclidean xyz coordinates.
void setInput(CloudDevice input)
shared_ptr< ::pcl::PointIndices > Ptr
shared_ptr< PointCloud< PointT > > Ptr
void setDeltaHue(float delta_hue)
Set the tollerance on the hue.
shared_ptr< const PointCloud< pcl::PointXYZ > > ConstPtr
pcl::gpu::Octree::Ptr GPUTreePtr
GPUTreePtr getSearchMethod()
Get a pointer to the search method used.
shared_ptr< Octree > Ptr
Types.
PointCloudHost::ConstPtr PointCloudHostConstPtr
PointIndices::ConstPtr PointIndicesConstPtr
virtual std::string getClassName() const
Class getName method.
PointCloudHost::Ptr PointCloudHostPtr