ofxPixels with added functionality, such as getTotalPixels() and isNewFrame(ofPixels LastFrame)
README
ofxPixelsExtended
A simple extensionto ofxPixels. Adds functions (More to come) getTotalPixels() - returns total number of pixels, channel independent. isNewFrame(ofPixels lastFrame)/isNewFrame(ofPixelsExtended lastFrame) - compares to sets of pixels to see if they are unique, returns true of they are.
Future versions: Average color in the pixel set. Most used color in pixel set. least used color in pixel set.
Functions
bool isNewFrame(ofPixels last, int pxIter = 50); bool isNewFrame(ofxPixelsExtended last, int pxIter = 50); bool isNewFrame(int pxIter = 50); uint getTotalPixels();
ofxAddons