MergedLabeledPointCloud Class Reference

Merges several labeled or unlabeled point clouds into one labeled point cloud. More...

#include <VisionX/libraries/PointCloudTools/MergedLabeledPointCloud.h>

Public Types

using Label = uint32_t
 
using PointL = pcl::PointXYZRGBL
 
using PointT = pcl::PointXYZRGBA
 

Public Member Functions

pcl::PointCloud< PointL >::Ptr getResultPointCloud ()
 Get the result point cloud.
 
 MergedLabeledPointCloud ()
 Constructor.
 
void setInputPointCloud (const std::string &name, pcl::PointCloud< PointL >::ConstPtr inputCloud, bool isLabeled=true)
 Set a (new) labeled or unlabeled input point cloud.
 
void setInputPointCloud (const std::string &name, pcl::PointCloud< PointL >::ConstPtr inputCloud, visionx::PointContentType originalType)
 Set a (new) input point cloud.
 
void setInputPointCloud (const std::string &name, pcl::PointCloud< PointT >::ConstPtr inputCloud)
 Set a (new) unlabeled input point cloud.
 

Detailed Description

Merges several labeled or unlabeled point clouds into one labeled point cloud.

Member Typedef Documentation

◆ Label

using Label = uint32_t

◆ PointL

using PointL = pcl::PointXYZRGBL

◆ PointT

using PointT = pcl::PointXYZRGBA

Constructor & Destructor Documentation

◆ MergedLabeledPointCloud()

Constructor.

Member Function Documentation

◆ getResultPointCloud()

auto getResultPointCloud ( )

Get the result point cloud.

It is rebuild if necessary.

Returns
The result point cloud.

◆ setInputPointCloud() [1/3]

void setInputPointCloud ( const std::string & name,
pcl::PointCloud< PointL >::ConstPtr inputCloud,
bool isLabeled = true )

Set a (new) labeled or unlabeled input point cloud.

Stores the given point cloud as latest point cloud with the given name, which will be used when getting the result point cloud. If isLabeled is passed as false, the point cloud will receive a (new) constant label.

Parameters
nameThe point cloud's name.
inputCloudThe input point cloud.
isLabeldWhether the point cloud has valid labels.

◆ setInputPointCloud() [2/3]

void setInputPointCloud ( const std::string & name,
pcl::PointCloud< PointL >::ConstPtr inputCloud,
visionx::PointContentType originalType )

Set a (new) input point cloud.

Parameters
nameThe point cloud's name
inputCloudThe input point cloud.
originalTypeThe providers point type (used to check whether the cloud is labeled or not).

◆ setInputPointCloud() [3/3]

void setInputPointCloud ( const std::string & name,
pcl::PointCloud< PointT >::ConstPtr inputCloud )

Set a (new) unlabeled input point cloud.

The point cloud will receive a (new) constant label.

Parameters
nameThe point cloud name.
inputCloudThe input point cloud.

The documentation for this class was generated from the following files: