File Exchange

image thumbnail

KMeans Segmentation.

version 1.0 (1.82 KB) by

Kmeans code.

4 Downloads

Updated

View License

This function partitions the points in the n-by-p data matrix 'X' into k clusters.

Comments and Ratings (3)

Does it work for gray images? I used it but it didn't work! The error is this:
??? Subscript indices must either
be real positive integers or
logicals.

Error in ==> kmeans at 37
  if(ima(i)>0)
  h(ima(i))=h(ima(i))+1;end;

Does it work for gray images? I used it but it didn't work! The error is this:
??? Subscript indices must either
be real positive integers or
logicals.

Error in ==> kmeans at 37
  if(ima(i)>0)
  h(ima(i))=h(ima(i))+1;end;

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video