i wanna Apply a Kmeans clusering Algorithm on an image data base using matlab. i
know the coding but i dono if my idea is right or not:
first of all all images are grouped in to k cluster .
for this i'll have 'ai' for each cluster where the first cluster will be a1 ,the second will be a2 and so on.(i will be a counter and with strcat i will create a1,a2,...)
these 'ai's are arrays.
and the input values of them are the name of images and the first element of each array i.e ai(1) is the centroid.
then i do k_means for these 'ai's where in the second step each element of array(except for
the first element which is centroid) will check its Euclidean distance with all centroids
and according to this the new group will be constructed and then there would be k_means iteration.
is it a correct idea?
Tell me more
×
Stack Overflow is a question and answer site for
professional and enthusiast programmers. It's 100% free, no registration required.
|
|||||||
|
First, you could use cells to ease coding :
If you're using centroids, you'll have to make sure your images are the same size, or to extract features for all them. |
|||
|