MATLAB Answers


k means clustering of image ..

Asked by Max
on 14 Oct 2011

hello every one ..i am new to image processing ..and i am learning now the k means clustering of image .. i went through wonderful steves image processing tuorial which has the link as

the tutorial was really good .. now i dont want to use the kmeans inbuilt function... i want to learn the codes to do kmeans clustering of image myself with my own built function....

please tell me the way so that i can replace this step

[cluster_idx cluster_center] = kmeans(ab,nColors,'distance','sqEuclidean','Replicates',3);

by my own codes ..

thanking you



No products are associated with this question.

1 Answer

Answer by Jan Simon
on 14 Oct 2011

Is it possible to answer this question? It depends on "your own codes". Do you mean: "I want to create a kmeans clustering function - where can I find corresponding literature?"

There are several kmeans++ implementations in the FEX. Did you check them? And asking Google for "Matlab kmeans" would be a good idea also.


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!