Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how do i use kmeans clustering??

1 Ansicht (letzte 30 Tage)
Laila Hayat
Laila Hayat am 21 Nov. 2012
im loading a pic onion.png and using function kmeans(x,k) i assigned k=5. now problem is that i cant find what 'x' is and how to use it? never used matlab so dont know how to use the functions
  8 Kommentare
Laila Hayat
Laila Hayat am 26 Nov. 2012
a=imread('onion.png'); imshow(a); ab=double(a); cluster=kmeans(ab, 5); finalImage=reshape(cluster ,5); figure, imagesc(finalImage)
Laila Hayat
Laila Hayat am 26 Nov. 2012
code i wrote till now

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by