Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::cv::opensurf::Kmeans Class Reference

Kmeans clustering. More...

#include <OpenSurfLib.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Kmeans clustering.

Kmeans clustering class (under development)

Constructor & Destructor Documentation

◆ ~Kmeans()

icl::cv::opensurf::Kmeans::~Kmeans ( )
inline

Destructor.

◆ Kmeans()

icl::cv::opensurf::Kmeans::Kmeans ( )
inline

Constructor.

Member Function Documentation

◆ AssignToClusters()

bool icl::cv::opensurf::Kmeans::AssignToClusters ( )

Assign Ipoints to clusters.

◆ Distance()

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

Function to measure the distance between 2 ipoints.

◆ InitRandomClusters()

void icl::cv::opensurf::Kmeans::InitRandomClusters ( int  n)

Randomly distribute 'n' clusters.

◆ RepositionClusters()

void icl::cv::opensurf::Kmeans::RepositionClusters ( )

Calculate new cluster centers.

◆ Run()

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

Do it all!

◆ SetIpoints()

void icl::cv::opensurf::Kmeans::SetIpoints ( IpVec ipts)

Set the ipts to be used.

Member Data Documentation

◆ clusters

IpVec icl::cv::opensurf::Kmeans::clusters

Vector stores cluster centers.

◆ ipts

IpVec* icl::cv::opensurf::Kmeans::ipts

Vector stores ipoints for this run.


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