Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions
pcl::LabeledEuclideanClusterExtraction< PointT > Class Template Reference

LabeledEuclideanClusterExtraction represents a segmentation class for cluster extraction in an Euclidean sense, with label info. More...

#include <pcl/segmentation/extract_labeled_clusters.h>

Inheritance diagram for pcl::LabeledEuclideanClusterExtraction< PointT >:
Inheritance graph
[legend]
Collaboration diagram for pcl::LabeledEuclideanClusterExtraction< PointT >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef pcl::PointCloud< PointTPointCloud
typedef PointCloud::Ptr PointCloudPtr
typedef PointCloud::ConstPtr PointCloudConstPtr
typedef pcl::search::Search
< PointT
KdTree
typedef pcl::search::Search
< PointT >::Ptr 
KdTreePtr
typedef PointIndices::Ptr PointIndicesPtr
typedef PointIndices::ConstPtr PointIndicesConstPtr

Public Member Functions

 LabeledEuclideanClusterExtraction ()
 Empty constructor.
void setSearchMethod (const KdTreePtr &tree)
 Provide a pointer to the search object.
KdTreePtr getSearchMethod () const
 Get a pointer to the search method used.
void setClusterTolerance (double tolerance)
 Set the spatial cluster tolerance as a measure in the L2 Euclidean space.
double getClusterTolerance () const
 Get the spatial cluster tolerance as a measure in the L2 Euclidean space.
void setMinClusterSize (int min_cluster_size)
 Set the minimum number of points that a cluster needs to contain in order to be considered valid.
int getMinClusterSize () const
 Get the minimum number of points that a cluster needs to contain in order to be considered valid.
void setMaxClusterSize (int max_cluster_size)
 Set the maximum number of points that a cluster needs to contain in order to be considered valid.
int getMaxClusterSize () const
 Get the maximum number of points that a cluster needs to contain in order to be considered valid.
void setMaxLabels (unsigned int max_label)
 Set the maximum number of labels in the cloud.
unsigned int getMaxLabels () const
 Get the maximum number of labels.
void extract (std::vector< std::vector< PointIndices > > &labeled_clusters)
 Cluster extraction in a PointCloud given by <setInputCloud (), setIndices ()>
virtual void setInputCloud (const PointCloudConstPtr &cloud)
 Provide a pointer to the input dataset.
PointCloudConstPtr const getInputCloud ()
 Get a pointer to the input point cloud dataset.
void setIndices (const IndicesPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
void setIndices (const IndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
void setIndices (const PointIndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
void setIndices (size_t row_start, size_t col_start, size_t nb_rows, size_t nb_cols)
 Set the indices for the points laying within an interest region of the point cloud.
IndicesPtr const getIndices ()
 Get a pointer to the vector of indices used.
const PointToperator[] (size_t pos)
 Override PointCloud operator[] to shorten code.

Detailed Description

template<typename PointT>
class pcl::LabeledEuclideanClusterExtraction< PointT >

LabeledEuclideanClusterExtraction represents a segmentation class for cluster extraction in an Euclidean sense, with label info.

Author:
Koen Buys

Definition at line 71 of file extract_labeled_clusters.h.


Member Typedef Documentation

Definition at line 80 of file extract_labeled_clusters.h.

Definition at line 81 of file extract_labeled_clusters.h.

Reimplemented from pcl::PCLBase< PointT >.

Definition at line 76 of file extract_labeled_clusters.h.

Reimplemented from pcl::PCLBase< PointT >.

Definition at line 78 of file extract_labeled_clusters.h.

Reimplemented from pcl::PCLBase< PointT >.

Definition at line 77 of file extract_labeled_clusters.h.

Reimplemented from pcl::PCLBase< PointT >.

Definition at line 84 of file extract_labeled_clusters.h.

Reimplemented from pcl::PCLBase< PointT >.

Definition at line 83 of file extract_labeled_clusters.h.


Constructor & Destructor Documentation

Empty constructor.

Definition at line 88 of file extract_labeled_clusters.h.


Member Function Documentation

template<typename PointT >
void pcl::LabeledEuclideanClusterExtraction< PointT >::extract ( std::vector< std::vector< PointIndices > > &  labeled_clusters)

Cluster extraction in a PointCloud given by <setInputCloud (), setIndices ()>

Parameters:
[out]labeled_clustersthe resultant point clusters

Definition at line 123 of file extract_labeled_clusters.hpp.

template<typename PointT >
double pcl::LabeledEuclideanClusterExtraction< PointT >::getClusterTolerance ( ) const [inline]

Get the spatial cluster tolerance as a measure in the L2 Euclidean space.

Definition at line 114 of file extract_labeled_clusters.h.

template<typename PointT>
IndicesPtr const pcl::PCLBase< PointT >::getIndices ( ) [inline, inherited]

Get a pointer to the vector of indices used.

Definition at line 190 of file pcl_base.h.

template<typename PointT>
PointCloudConstPtr const pcl::PCLBase< PointT >::getInputCloud ( ) [inline, inherited]

Get a pointer to the input point cloud dataset.

Definition at line 107 of file pcl_base.h.

template<typename PointT >
int pcl::LabeledEuclideanClusterExtraction< PointT >::getMaxClusterSize ( ) const [inline]

Get the maximum number of points that a cluster needs to contain in order to be considered valid.

Definition at line 134 of file extract_labeled_clusters.h.

template<typename PointT >
unsigned int pcl::LabeledEuclideanClusterExtraction< PointT >::getMaxLabels ( ) const [inline]

Get the maximum number of labels.

Definition at line 144 of file extract_labeled_clusters.h.

template<typename PointT >
int pcl::LabeledEuclideanClusterExtraction< PointT >::getMinClusterSize ( ) const [inline]

Get the minimum number of points that a cluster needs to contain in order to be considered valid.

Definition at line 124 of file extract_labeled_clusters.h.

template<typename PointT >
KdTreePtr pcl::LabeledEuclideanClusterExtraction< PointT >::getSearchMethod ( ) const [inline]

Get a pointer to the search method used.

Definition at line 104 of file extract_labeled_clusters.h.

template<typename PointT>
const PointT& pcl::PCLBase< PointT >::operator[] ( size_t  pos) [inline, inherited]

Override PointCloud operator[] to shorten code.

Note:
this method can be called instead of (*input_)[(*indices_)[pos]] or input_->points[(*indices_)[pos]]
Parameters:
posposition in indices_ vector

Definition at line 197 of file pcl_base.h.

template<typename PointT >
void pcl::LabeledEuclideanClusterExtraction< PointT >::setClusterTolerance ( double  tolerance) [inline]

Set the spatial cluster tolerance as a measure in the L2 Euclidean space.

Parameters:
[in]tolerancethe spatial cluster tolerance as a measure in the L2 Euclidean space

Definition at line 110 of file extract_labeled_clusters.h.

template<typename PointT>
void pcl::PCLBase< PointT >::setIndices ( const IndicesPtr indices) [inline, inherited]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indicesa pointer to the vector of indices that represents the input data.

Definition at line 113 of file pcl_base.h.

template<typename PointT>
void pcl::PCLBase< PointT >::setIndices ( const IndicesConstPtr indices) [inline, inherited]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indicesa pointer to the vector of indices that represents the input data.

Definition at line 124 of file pcl_base.h.

template<typename PointT>
void pcl::PCLBase< PointT >::setIndices ( const PointIndicesConstPtr indices) [inline, inherited]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indicesa pointer to the vector of indices that represents the input data.

Definition at line 135 of file pcl_base.h.

template<typename PointT>
void pcl::PCLBase< PointT >::setIndices ( size_t  row_start,
size_t  col_start,
size_t  nb_rows,
size_t  nb_cols 
) [inline, inherited]

Set the indices for the points laying within an interest region of the point cloud.

Note:
you shouldn't call this method on unorganized point clouds!
Parameters:
row_startthe offset on rows
col_startthe offset on columns
nb_rowsthe number of rows to be considered row_start included
nb_colsthe number of columns to be considered col_start included

Definition at line 151 of file pcl_base.h.

template<typename PointT>
virtual void pcl::PCLBase< PointT >::setInputCloud ( const PointCloudConstPtr cloud) [inline, virtual, inherited]

Provide a pointer to the input dataset.

Parameters:
cloudthe const boost shared pointer to a PointCloud message

Reimplemented in pcl::PCA< PointT >.

Definition at line 103 of file pcl_base.h.

template<typename PointT >
void pcl::LabeledEuclideanClusterExtraction< PointT >::setMaxClusterSize ( int  max_cluster_size) [inline]

Set the maximum number of points that a cluster needs to contain in order to be considered valid.

Parameters:
[in]max_cluster_sizethe maximum cluster size

Definition at line 130 of file extract_labeled_clusters.h.

template<typename PointT >
void pcl::LabeledEuclideanClusterExtraction< PointT >::setMaxLabels ( unsigned int  max_label) [inline]

Set the maximum number of labels in the cloud.

Parameters:
[in]max_labelthe maximum

Definition at line 140 of file extract_labeled_clusters.h.

template<typename PointT >
void pcl::LabeledEuclideanClusterExtraction< PointT >::setMinClusterSize ( int  min_cluster_size) [inline]

Set the minimum number of points that a cluster needs to contain in order to be considered valid.

Parameters:
[in]min_cluster_sizethe minimum cluster size

Definition at line 120 of file extract_labeled_clusters.h.

template<typename PointT >
void pcl::LabeledEuclideanClusterExtraction< PointT >::setSearchMethod ( const KdTreePtr tree) [inline]

Provide a pointer to the search object.

Parameters:
[in]treea pointer to the spatial search object.

Definition at line 100 of file extract_labeled_clusters.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines