Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::cv::opensurf::Kmeans Class Reference

Kmeans clustering. More...

#include <OpenSurfLib.h>

List of all members.

Public Member Functions

 ~Kmeans ()
 Destructor.
 Kmeans ()
 Constructor.
void Run (IpVec *ipts, int clusters, bool init=false)
 Do it all!
void SetIpoints (IpVec *ipts)
 Set the ipts to be used.
void InitRandomClusters (int n)
 Randomly distribute 'n' clusters.
bool AssignToClusters ()
 Assign Ipoints to clusters.
void RepositionClusters ()
 Calculate new cluster centers.
float Distance (Ipoint &ip1, Ipoint &ip2)
 Function to measure the distance between 2 ipoints.

Public Attributes

IpVecipts
 Vector stores ipoints for this run.
IpVec clusters
 Vector stores cluster centers.

Detailed Description

Kmeans clustering.

Kmeans clustering class (under development)


Constructor & Destructor Documentation

Destructor.

Constructor.


Member Function Documentation

Assign Ipoints to clusters.

float icl::cv::opensurf::Kmeans::Distance ( Ipoint ip1,
Ipoint ip2 
)

Function to measure the distance between 2 ipoints.

Randomly distribute 'n' clusters.

Calculate new cluster centers.

void icl::cv::opensurf::Kmeans::Run ( IpVec ipts,
int  clusters,
bool  init = false 
)

Do it all!

Set the ipts to be used.


Member Data Documentation

Vector stores cluster centers.

Vector stores ipoints for this run.


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