EuclideanClusterExtraction represents a segmentation class for cluster extraction in an Euclidean sense. More...
#include <pcl/segmentation/extract_clusters.h>
Public Types | |
using | PointCloud = pcl::PointCloud< PointT > |
using | PointCloudPtr = typename PointCloud::Ptr |
using | PointCloudConstPtr = typename PointCloud::ConstPtr |
using | KdTree = pcl::search::Search< PointT > |
using | KdTreePtr = typename KdTree::Ptr |
using | PointIndicesPtr = PointIndices::Ptr |
using | PointIndicesConstPtr = PointIndices::ConstPtr |
Public Types inherited from pcl::PCLBase< PointT > | |
using | PointCloud = pcl::PointCloud< PointT > |
using | PointCloudPtr = typename PointCloud::Ptr |
using | PointCloudConstPtr = typename PointCloud::ConstPtr |
using | PointIndicesPtr = PointIndices::Ptr |
using | PointIndicesConstPtr = PointIndices::ConstPtr |
Public Member Functions | |
EuclideanClusterExtraction () | |
Empty constructor. More... |
|
void | setSearchMethod (const KdTreePtr &tree) |
Provide a pointer to the search object. More... |
|
KdTreePtr | getSearchMethod () const |
Get a pointer to the search method used. More... |
|
void | setClusterTolerance (double tolerance) |
Set the spatial cluster tolerance as a measure in the L2 Euclidean space. More... |
|
double | getClusterTolerance () const |
Get the spatial cluster tolerance as a measure in the L2 Euclidean space. More... |
|
void | setMinClusterSize (pcl::uindex_t min_cluster_size) |
Set the minimum number of points that a cluster needs to contain in order to be considered valid. More... |
|
pcl::uindex_t | getMinClusterSize () const |
Get the minimum number of points that a cluster needs to contain in order to be considered valid. More... |
|
void | setMaxClusterSize (pcl::uindex_t max_cluster_size) |
Set the maximum number of points that a cluster needs to contain in order to be considered valid. More... |
|
pcl::uindex_t | getMaxClusterSize () const |
Get the maximum number of points that a cluster needs to contain in order to be considered valid. More... |
|
void | extract (std::vector< PointIndices > &clusters) |
Cluster extraction in a PointCloud given by <setInputCloud (), setIndices ()> More... |
|
Public Member Functions inherited from pcl::PCLBase< PointT > | |
PCLBase () | |
Empty constructor. More... |
|
PCLBase (const PCLBase &base) | |
Copy constructor. More... |
|
virtual | ~PCLBase ()=default |
Destructor. More... |
|
virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
Provide a pointer to the input dataset. More... |
|
const PointCloudConstPtr | getInputCloud () const |
Get a pointer to the input point cloud dataset. More... |
|
virtual void | setIndices (const IndicesPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... |
|
virtual void | setIndices (const IndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... |
|
virtual void | setIndices (const PointIndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... |
|
virtual void | setIndices (std::size_t row_start, std::size_t col_start, std::size_t nb_rows, std::size_t nb_cols) |
Set the indices for the points laying within an interest region of the point cloud. More... |
|
IndicesPtr | getIndices () |
Get a pointer to the vector of indices used. More... |
|
const IndicesConstPtr | getIndices () const |
Get a pointer to the vector of indices used. More... |
|
const PointT & | operator[] (std::size_t pos) const |
Override PointCloud operator[] to shorten code. More... |
|
Protected Member Functions | |
virtual std::string | getClassName () const |
Class getName method. More... |
|
bool | initCompute () |
This method should get called before starting the actual computation. More... |
|
bool | deinitCompute () |
This method should get called after finishing the actual computation. More... |
|
Protected Member Functions inherited from pcl::PCLBase< PointT > | |
bool | initCompute () |
This method should get called before starting the actual computation. More... |
|
bool | deinitCompute () |
This method should get called after finishing the actual computation. More... |
|
Protected Attributes | |
KdTreePtr | tree_ |
A pointer to the spatial search object. More... |
|
double | cluster_tolerance_ |
The spatial cluster tolerance as a measure in the L2 Euclidean space. More... |
|
pcl::uindex_t | min_pts_per_cluster_ |
The minimum number of points that a cluster needs to contain in order to be considered valid (default = 1). More... |
|
pcl::uindex_t | max_pts_per_cluster_ |
The maximum number of points that a cluster needs to contain in order to be considered valid (default = MAXINT). More... |
|
PointCloudConstPtr | input_ |
The input point cloud dataset. More... |
|
IndicesPtr | indices_ |
A pointer to the vector of point indices to use. More... |
|
Protected Attributes inherited from pcl::PCLBase< PointT > | |
PointCloudConstPtr | input_ |
The input point cloud dataset. More... |
|
IndicesPtr | indices_ |
A pointer to the vector of point indices to use. More... |
|
bool | use_indices_ |
Set to true if point indices are used. More... |
|
bool | fake_indices_ |
If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud. More... |
|
EuclideanClusterExtraction represents a segmentation class for cluster extraction in an Euclidean sense.
Definition at line 325 of file extract_clusters.h.
using pcl::EuclideanClusterExtraction< PointT >::KdTree = pcl::search::Search<PointT> |
Definition at line 334 of file extract_clusters.h.
using pcl::EuclideanClusterExtraction< PointT >::KdTreePtr = typename KdTree::Ptr |
Definition at line 335 of file extract_clusters.h.
using pcl::EuclideanClusterExtraction< PointT >::PointCloud = pcl::PointCloud<PointT> |
Definition at line 330 of file extract_clusters.h.
using pcl::EuclideanClusterExtraction< PointT >::PointCloudConstPtr = typename PointCloud::ConstPtr |
Definition at line 332 of file extract_clusters.h.
using pcl::EuclideanClusterExtraction< PointT >::PointCloudPtr = typename PointCloud::Ptr |
Definition at line 331 of file extract_clusters.h.
using pcl::EuclideanClusterExtraction< PointT >::PointIndicesConstPtr = PointIndices::ConstPtr |
Definition at line 338 of file extract_clusters.h.
using pcl::EuclideanClusterExtraction< PointT >::PointIndicesPtr = PointIndices::Ptr |
Definition at line 337 of file extract_clusters.h.
| inline |
Empty constructor.
Definition at line 342 of file extract_clusters.h.
| protected |
This method should get called after finishing the actual computation.
Definition at line 174 of file pcl_base.hpp.
void pcl::EuclideanClusterExtraction< PointT >::extract | ( | std::vector< PointIndices > & | clusters | ) |
Cluster extraction in a PointCloud given by <setInputCloud (), setIndices ()>
[out] | clusters | the resultant point clusters |
Definition at line 228 of file extract_clusters.hpp.
References pcl::gpu::comparePointClusters(), and pcl::extractEuclideanClusters().
Referenced by pcl::people::GroundBasedPeopleDetectionApp< PointT >::compute().
| inlineprotectedvirtual |
Class getName method.
Definition at line 440 of file extract_clusters.h.
| inline |
Get the spatial cluster tolerance as a measure in the L2 Euclidean space.
Definition at line 377 of file extract_clusters.h.
References pcl::EuclideanClusterExtraction< PointT >::cluster_tolerance_.
| inline |
Get the maximum number of points that a cluster needs to contain in order to be considered valid.
Definition at line 409 of file extract_clusters.h.
References pcl::EuclideanClusterExtraction< PointT >::max_pts_per_cluster_.
| inline |
Get the minimum number of points that a cluster needs to contain in order to be considered valid.
Definition at line 393 of file extract_clusters.h.
References pcl::EuclideanClusterExtraction< PointT >::min_pts_per_cluster_.
| inline |
Get a pointer to the search method used.
Definition at line 361 of file extract_clusters.h.
References pcl::EuclideanClusterExtraction< PointT >::tree_.
| protected |
This method should get called before starting the actual computation.
Internally, initCompute() does the following:
Definition at line 138 of file pcl_base.hpp.
| inline |
Set the spatial cluster tolerance as a measure in the L2 Euclidean space.
[in] | tolerance | the spatial cluster tolerance as a measure in the L2 Euclidean space |
Definition at line 370 of file extract_clusters.h.
References pcl::EuclideanClusterExtraction< PointT >::cluster_tolerance_.
Referenced by pcl::people::GroundBasedPeopleDetectionApp< PointT >::compute().
| inline |
Set the maximum number of points that a cluster needs to contain in order to be considered valid.
[in] | max_cluster_size | the maximum cluster size |
Definition at line 402 of file extract_clusters.h.
References pcl::EuclideanClusterExtraction< PointT >::max_pts_per_cluster_.
Referenced by pcl::people::GroundBasedPeopleDetectionApp< PointT >::compute().
| inline |
Set the minimum number of points that a cluster needs to contain in order to be considered valid.
[in] | min_cluster_size | the minimum cluster size |
Definition at line 386 of file extract_clusters.h.
References pcl::EuclideanClusterExtraction< PointT >::min_pts_per_cluster_.
Referenced by pcl::people::GroundBasedPeopleDetectionApp< PointT >::compute().
| inline |
Provide a pointer to the search object.
[in] | tree | a pointer to the spatial search object. |
Definition at line 352 of file extract_clusters.h.
References pcl::EuclideanClusterExtraction< PointT >::tree_.
Referenced by pcl::people::GroundBasedPeopleDetectionApp< PointT >::compute().
| protected |
The spatial cluster tolerance as a measure in the L2 Euclidean space.
Definition at line 431 of file extract_clusters.h.
Referenced by pcl::EuclideanClusterExtraction< PointT >::getClusterTolerance(), and pcl::EuclideanClusterExtraction< PointT >::setClusterTolerance().
| protected |
A pointer to the vector of point indices to use.
Definition at line 150 of file pcl_base.h.
| protected |
The input point cloud dataset.
Definition at line 147 of file pcl_base.h.
| protected |
The maximum number of points that a cluster needs to contain in order to be considered valid (default = MAXINT).
Definition at line 437 of file extract_clusters.h.
Referenced by pcl::EuclideanClusterExtraction< PointT >::getMaxClusterSize(), and pcl::EuclideanClusterExtraction< PointT >::setMaxClusterSize().
| protected |
The minimum number of points that a cluster needs to contain in order to be considered valid (default = 1).
Definition at line 434 of file extract_clusters.h.
Referenced by pcl::EuclideanClusterExtraction< PointT >::getMinClusterSize(), and pcl::EuclideanClusterExtraction< PointT >::setMinClusterSize().
| protected |
A pointer to the spatial search object.
Definition at line 428 of file extract_clusters.h.
Referenced by pcl::EuclideanClusterExtraction< PointT >::getSearchMethod(), and pcl::EuclideanClusterExtraction< PointT >::setSearchMethod().
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_euclidean_cluster_extraction.html