|
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... | |
Merges several labeled or unlabeled point clouds into one labeled point cloud.
Definition at line 42 of file MergedLabeledPointCloud.h.
using Label = uint32_t |
Definition at line 47 of file MergedLabeledPointCloud.h.
using PointL = pcl::PointXYZRGBL |
Definition at line 46 of file MergedLabeledPointCloud.h.
using PointT = pcl::PointXYZRGBA |
Definition at line 45 of file MergedLabeledPointCloud.h.
|
default |
Constructor.
auto getResultPointCloud | ( | ) |
Get the result point cloud.
It is rebuild if necessary.
Definition at line 81 of file MergedLabeledPointCloud.cpp.
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.
name | The point cloud's name. |
inputCloud | The input point cloud. |
isLabeld | Whether the point cloud has valid labels. |
Definition at line 39 of file MergedLabeledPointCloud.cpp.
void setInputPointCloud | ( | const std::string & | name, |
pcl::PointCloud< PointL >::ConstPtr | inputCloud, | ||
visionx::PointContentType | originalType | ||
) |
Set a (new) input point cloud.
name | The point cloud's name |
inputCloud | The input point cloud. |
originalType | The providers point type (used to check whether the cloud is labeled or not). |
Definition at line 60 of file MergedLabeledPointCloud.cpp.
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.
name | The point cloud name. |
inputCloud | The input point cloud. |
Definition at line 68 of file MergedLabeledPointCloud.cpp.