Image Component Library (ICL)
|
#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 | |
IpVec * | ipts |
Vector stores ipoints for this run. More... | |
IpVec | clusters |
Vector stores cluster centers. More... | |
Kmeans clustering.
Kmeans clustering class (under development)
|
inline |
Destructor.
|
inline |
Constructor.
bool icl::cv::opensurf::Kmeans::AssignToClusters | ( | ) |
Assign Ipoints to clusters.
Function to measure the distance between 2 ipoints.
void icl::cv::opensurf::Kmeans::InitRandomClusters | ( | int | n | ) |
Randomly distribute 'n' clusters.
void icl::cv::opensurf::Kmeans::RepositionClusters | ( | ) |
Calculate new cluster centers.
void icl::cv::opensurf::Kmeans::Run | ( | IpVec * | ipts, |
int | clusters, | ||
bool | init = false |
||
) |
Do it all!
void icl::cv::opensurf::Kmeans::SetIpoints | ( | IpVec * | ipts | ) |
Set the ipts to be used.
IpVec icl::cv::opensurf::Kmeans::clusters |
Vector stores cluster centers.
IpVec* icl::cv::opensurf::Kmeans::ipts |
Vector stores ipoints for this run.