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