I'm using the code from the kmeans example about clustering the color in a picture. In my case, I always create 3 clusters.
After it's done, I would like to know 2 things
1) Color (In BGR or RGB format)
2) Percentage (or at least, how many pixel have this color in the final picture)
Since I always have 3 colors, I need this information 3 times.
I have coded something but it's taking a lot of time to perform because I need to go through the double array of all color, increment count, etc...
Is there anything in the Accord.NET framework that could help me with this? Basically, a function that count the number of time a specific color is there?
Thanks!
Thank you so much!