visionx::tools::detail Namespace Reference

Classes

struct  FunctorWithReturnType
 Base class of functors with return value. More...
 
struct  PclPointType
 
struct  PclPointType< PointContentType::eColoredLabeledPoints >
 
struct  PclPointType< PointContentType::eColoredOrientedPoints >
 
struct  PclPointType< PointContentType::eColoredPoints >
 
struct  PclPointType< PointContentType::eIntensity >
 
struct  PclPointType< PointContentType::eLabeledPoints >
 
struct  PclPointType< PointContentType::eOrientedPoints >
 
struct  PclPointType< PointContentType::ePoints >
 

Functions

void addSegmentIndex (std::map< uint32_t, pcl::PointIndices > &segmentIndices, uint32_t label, std::size_t index)
 
void addSegmentIndex (std::map< uint32_t, pcl::PointIndices::Ptr > &segmentIndices, uint32_t label, std::size_t index)
 
template<class LabeledPointT , class MapValueT >
void addSegmentIndices (const pcl::PointCloud< LabeledPointT > &labeledCloud, std::map< uint32_t, MapValueT > &segmentIndices, bool excludeZero=false)
 
template<typename SourceT , typename TargetT >
void convertLabel (const SourceT &source, TargetT &target)
 Convert label attribute. Use with visionx point type and PCL type with labels. More...
 
template<typename SourceT , typename TargetT >
void convertRGBA (const SourceT &source, TargetT &target)
 Convert r, g, b attributes. Use with visionx::RGBA and PCL type with RGBA. More...
 
template<typename SourceT , typename TargetT >
void convertXYZ (const SourceT &source, TargetT &target)
 Convert x, y, z attributes. Use with visionx::Point3D and PCL type with XYZ. More...
 
template<typename PointCloudT , typename IndicesPtrT = pcl::IndicesConstPtr>
PointCloudT::Ptr downsampleByVoxelGrid (typename PointCloudT::ConstPtr inputCloud, float leafSize=5.0, const IndicesPtrT &indices=nullptr)
 
template<class PointCloudT >
void fillLabelMap (const PointCloudT &labeledCloud, std::map< uint32_t, pcl::PointIndices > &labelIndicesMap, bool excludeZero)
 Fill labelIndicesMap with indices of each segment's points. More...
 

Function Documentation

◆ addSegmentIndex() [1/2]

void addSegmentIndex ( std::map< uint32_t, pcl::PointIndices > &  segmentIndices,
uint32_t  label,
std::size_t  index 
)

Definition at line 6 of file segments.cpp.

+ Here is the caller graph for this function:

◆ addSegmentIndex() [2/2]

void addSegmentIndex ( std::map< uint32_t, pcl::PointIndices::Ptr > &  segmentIndices,
uint32_t  label,
std::size_t  index 
)

Definition at line 15 of file segments.cpp.

◆ addSegmentIndices()

void visionx::tools::detail::addSegmentIndices ( const pcl::PointCloud< LabeledPointT > &  labeledCloud,
std::map< uint32_t, MapValueT > &  segmentIndices,
bool  excludeZero = false 
)

Definition at line 26 of file segments.h.

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

◆ convertLabel()

void visionx::tools::detail::convertLabel ( const SourceT &  source,
TargetT &  target 
)

Convert label attribute. Use with visionx point type and PCL type with labels.

Definition at line 200 of file PointCloudConversions.h.

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

◆ convertRGBA()

void visionx::tools::detail::convertRGBA ( const SourceT &  source,
TargetT &  target 
)

Convert r, g, b attributes. Use with visionx::RGBA and PCL type with RGBA.

Definition at line 190 of file PointCloudConversions.h.

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

◆ convertXYZ()

void visionx::tools::detail::convertXYZ ( const SourceT &  source,
TargetT &  target 
)

Convert x, y, z attributes. Use with visionx::Point3D and PCL type with XYZ.

Definition at line 181 of file PointCloudConversions.h.

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

◆ downsampleByVoxelGrid()

PointCloudT::Ptr visionx::tools::detail::downsampleByVoxelGrid ( typename PointCloudT::ConstPtr  inputCloud,
float  leafSize = 5.0,
const IndicesPtrT &  indices = nullptr 
)

Definition at line 15 of file downsampling_voxelgrid.hpp.

+ Here is the call graph for this function:

◆ fillLabelMap()

void visionx::tools::detail::fillLabelMap ( const PointCloudT &  labeledCloud,
std::map< uint32_t, pcl::PointIndices > &  labelIndicesMap,
bool  excludeZero 
)

Fill labelIndicesMap with indices of each segment's points.

Parameters
labeledCloudA labeled point cloud.
labeledPointMapThe map to fill (label -> point indicies).
excludeZeroIf true, points with label == 0 are ignored.

Definition at line 96 of file PCLUtilities.h.

+ Here is the caller graph for this function: