Info
This question is closed. Reopen it to edit or answer.
Assigning word to different colour
1 view (last 30 days)
Show older comments
I have a code using k means
for k = 1:(length(dirlist))
img = imread([pathname, dirlist(k).name]);
flatImg = double(reshape(img,size(img,1)*size(img,2),size(img,3)));
idx = kmeans(flatImg,3);
end
I have around 20 images ,I have specified k=3,so for each colour i need to specify a word such as A,B,C
please tell how toprocess
5 Comments
Image Analyst
on 31 Aug 2012
Why do you want to do this? Why not just turn it back into an image? What are you going to do with a character array?
Answers (1)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!