This example code takes in a live video image and creates pixel clusters based on the SLIC Superpixel Segmentation.
I used this ofxAddon https://github.com/zrispo/ofxSuperpixels which is a wrapper for https://github.com/PSMM/SLIC-Superpixels.
In addition each pixels cluster is evaluated for it's "colorfulness" by implementing part of this code: http://www.pyimagesearch.com/2017/06/26/labeling-superpixel-colorfulness-opencv-python/#comment-428093
openframeworks http://openframeworks.cc/download/
It has only been tested on osx 10.10.5 with OF 0.9.8
Screen shot: