Feeds
提问
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? i want to cluster whole image based on its 5 colors. never used matlab so dont know how to use the functions
Code that i wrote till now a=imread('onion.png'); imshow(a); ab=double(a); cluster=kmeans(ab, 5); finalImage=re...
13 years 前 | 1 个回答 | 0
1
个回答提问
how do i use kmeans clustering??
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 t...
13 years 前 | 0 个回答 | 0