STIRA  0.1
Public Member Functions | List of all members
stira::common::ClusteringLearning Class Reference

class for 2D point cloud analysis Uses OpenCV's functionalities More...

#include <ClusteringLearning.h>

Public Member Functions

 ClusteringLearning (std::vector< Point< double > > inputPoints)
 constructor More...
 
PcaResult ComputePCA ()
 PCA analysis of this 2D point cloud (uses OpenCV) Ref: http://docs.opencv.org/3.1.0/d1/dee/tutorial_introduction_to_pca.html. More...
 
std::vector< pointClusterComputeKMeans (std::vector< Point< double > > clusterCenters)
 K-Means clustering of this 2D point cloud Ref: https://en.wikipedia.org/wiki/K-means_clustering. More...
 

Detailed Description

class for 2D point cloud analysis Uses OpenCV's functionalities

Constructor & Destructor Documentation

stira::common::ClusteringLearning::ClusteringLearning ( std::vector< Point< double > >  inputPoints)

constructor

Parameters
inputPointscloud of input points to be analysed

Member Function Documentation

std::vector< pointCluster > stira::common::ClusteringLearning::ComputeKMeans ( std::vector< Point< double > >  clusterCenters)

K-Means clustering of this 2D point cloud Ref: https://en.wikipedia.org/wiki/K-means_clustering.

Parameters
clusterCentersvector of initial cluster centroids
Returns
a vector of pointCluster structs, one per cluster

References stira::common::pointCluster::center, and stira::common::pointCluster::members.

PcaResult stira::common::ClusteringLearning::ComputePCA ( )

The documentation for this class was generated from the following files: