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

Function Documentation

◆ addSegmentIndex() [1/2]

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

Definition at line 7 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 18 of file segments.cpp.

◆ addSegmentIndices()

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

Definition at line 28 of file segments.h.

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

◆ convertLabel()

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.

Definition at line 237 of file PointCloudConversions.h.

+ Here is the caller graph for this function:

◆ convertRGBA()

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.

Definition at line 226 of file PointCloudConversions.h.

+ Here is the caller graph for this function:

◆ convertXYZ()

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.

Definition at line 216 of file PointCloudConversions.h.

+ Here is the caller graph for this function:

◆ downsampleByVoxelGrid()

template<typename PointCloudT, typename IndicesPtrT = pcl::IndicesConstPtr>
PointCloudT::Ptr downsampleByVoxelGrid ( typename PointCloudT::ConstPtr inputCloud,
float leafSize = 5.0,
const IndicesPtrT & indices = nullptr )

Definition at line 14 of file downsampling_voxelgrid.hpp.

+ Here is the caller graph for this function:

◆ fillLabelMap()

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.

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

Definition at line 98 of file PCLUtilities.h.

+ Here is the caller graph for this function: