C = VL_IKMEANS(X,K) returns the centers of a K-means paritioning of the data space X. X must be of class UINT8. C is of class UINT32.
[C, I] = VL_IKMEANS(...) returns the cluster associations I of the data as well.
VL_IKMEANS() accepts the following options:
- MaxIters 200
Maximum number of iterations before giving up (the algorithm stops as soon as there is no change in the data to cluster associations).
- Method Lloyd
Algorithm to use ('Lloyd', 'Elkan').
Increase the verbosity level.