|
Point Cloud Library (PCL)
1.8.1
|
K-means clustering. More...
#include <pcl/ml/kmeans.h>
Public Types | |
| typedef unsigned int | PointId |
| typedef unsigned int | ClusterId |
| typedef std::set< PointId > | SetPoints |
| typedef std::vector< float > | Point |
| typedef std::vector< SetPoints > | ClustersToPoints |
| typedef std::vector< ClusterId > | PointsToClusters |
| typedef std::vector< Point > | Centroids |
Public Member Functions | |
| Kmeans (unsigned int num_points, unsigned int num_dimensions) | |
| Empty constructor. More... | |
| ~Kmeans () | |
| This destructor destroys. More... | |
| void | setClusterSize (unsigned int k) |
| This method sets the k-means cluster size. More... | |
| void | kMeans () |
| void | setInputData (std::vector< Point > &data) |
| void | addDataPoint (Point &data_point) |
| void | initialClusterPoints () |
| void | computeCentroids () |
| float | distance (const Point &x, const Point &y) |
| Centroids | get_centroids () |
Protected Attributes | |
| unsigned int | num_points_ |
| unsigned int | num_dimensions_ |
| unsigned int | num_clusters_ |
| The number of clusters. More... | |
| std::vector< Point > | data_ |
| The cluster centroids. More... | |
| ClustersToPoints | clusters_to_points_ |
| PointsToClusters | points_to_clusters_ |
| Centroids | centroids_ |
| typedef std::vector<Point> pcl::Kmeans::Centroids |
| typedef unsigned int pcl::Kmeans::ClusterId |
| typedef std::vector<SetPoints> pcl::Kmeans::ClustersToPoints |
| typedef std::vector<float> pcl::Kmeans::Point |
| typedef unsigned int pcl::Kmeans::PointId |
| typedef std::vector<ClusterId> pcl::Kmeans::PointsToClusters |
| typedef std::set<PointId> pcl::Kmeans::SetPoints |
| pcl::Kmeans::Kmeans | ( | unsigned int | num_points, |
| unsigned int | num_dimensions | ||
| ) |
Empty constructor.
Definition at line 53 of file kmeans.hpp.
| pcl::Kmeans::~Kmeans | ( | ) |
This destructor destroys.
Definition at line 60 of file kmeans.hpp.
References pcl::getFieldIndex().
|
inline |
Definition at line 136 of file kmeans.h.
Referenced by pcl::UnaryClassifier< PointT >::kmeansClustering().
| void pcl::Kmeans::computeCentroids | ( | ) |
|
inline |
Definition at line 168 of file kmeans.h.
Referenced by pcl::UnaryClassifier< PointT >::kmeansClustering().
| void pcl::Kmeans::initialClusterPoints | ( | ) |
| void pcl::Kmeans::kMeans | ( | ) |
Referenced by pcl::UnaryClassifier< PointT >::kmeansClustering().
|
inline |
This method sets the k-means cluster size.
| [in] | k | number of clusters |
Definition at line 107 of file kmeans.h.
Referenced by pcl::UnaryClassifier< PointT >::kmeansClustering().
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |