1.0
1.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 1.82 KB File ID: #42345 Version: 1.0

KMeans Segmentation.

by

Diego (view profile)

 

Kmeans code.

| Watch this File

File Information
Description

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

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
28 Apr 2015 Vasumathi Ganesh  
18 Jan 2015 Salimeh Rahimy

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;

Comment only
18 Jan 2015 Salimeh Rahimy

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;

Comment only

Contact us