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. More...
 
 MergedLabeledPointCloud ()
 Constructor. More...
 
void setInputPointCloud (const std::string &name, pcl::PointCloud< PointL >::ConstPtr inputCloud, bool isLabeled=true)
 Set a (new) labeled or unlabeled input point cloud. More...
 
void setInputPointCloud (const std::string &name, pcl::PointCloud< PointL >::ConstPtr inputCloud, visionx::PointContentType originalType)
 Set a (new) input point cloud. More...
 
void setInputPointCloud (const std::string &name, pcl::PointCloud< PointT >::ConstPtr inputCloud)
 Set a (new) unlabeled input point cloud. More...
 

Detailed Description

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

Definition at line 43 of file MergedLabeledPointCloud.h.

Member Typedef Documentation

◆ Label

using Label = uint32_t

Definition at line 49 of file MergedLabeledPointCloud.h.

◆ PointL

using PointL = pcl::PointXYZRGBL

Definition at line 48 of file MergedLabeledPointCloud.h.

◆ PointT

using PointT = pcl::PointXYZRGBA

Definition at line 47 of file MergedLabeledPointCloud.h.

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.

Definition at line 82 of file MergedLabeledPointCloud.cpp.

+ Here is the caller graph for this function:

◆ 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.

Definition at line 40 of file MergedLabeledPointCloud.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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).

Definition at line 61 of file MergedLabeledPointCloud.cpp.

+ Here is the call graph for this function:

◆ 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.

Definition at line 69 of file MergedLabeledPointCloud.cpp.


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