I am trying to do color separation on this image using ClusteringComponents function (following an example on Wolfram Mathematica webpage). I will like to have a legend identifying each segmented component as "a" to "e". For example, using the original code,
ClusteringComponents[image, 5] // Colorize I could group black and green beads as "dark green->a". However, if I replace 5 with 6, I should be able to separate black from green beads so that I now have a legend like: Grey->"a" dark green->"b" and so on!
You kind suggestions and recommendations would be greatly appreciated. Happy Holidays guys!

