Originally from mantissa/ofxColorQuantizer
I recommend to check this helper too:
https://github.com/moebiussurfing/ofxColorQuantizerHelper
- Added threading workflow
Some code copied from the stc user fork: https://github.com/stc/ofxColorQuantizer/ This example can get colors weighted based on their areas, their order is based on their chroma values.
ofxColorQuantizer
Extract a color palette from an image using the K-means algorithm.
Based on the ocvColorQuantize demo that ships with Cinder:
https://github.com/cinder/Cinder-OpenCV/blob/master/samples/ocvColorQuantize
This add-on uses ofxOpenCv.
by Jeremy Rotsztain
