ofxEMD is an addon for openFrameworks for calculating Earth Movers Distance (EMD). EMD is a measure of the dissimilarity between two probability distributions, and the original implementation is by Yossi Rubner.
An example of its usage can be found here.