#ifndef _TEST_APP #define _TEST_APP #include "ofMain.h" #include "ofCvMain.h" /* A simple app that demonstrates how to use a float image to slowly blend two images together. This is a useful way to learn a background when performing computer vision. The original background capture very slowly adds in the current frame so objects that are introduced into the scene will be integrated into the background model over time. */ class testApp : public ofSimpleApp{ public: void setup(); void update(); void draw(); void keyPressed (int key); void mouseMoved(int x, int y ); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(); // ofVideoGrabber vidGrabber; // ofCvColorImage colorImg; ofImage imgLoaderA; ofImage imgLoaderB; ofCvGrayscaleImage giOriginalImage; ofCvGrayscaleImage giCurrentImage; ofCvGrayscaleImage giBgImage; ofCvGrayscaleImage giDiff; ofCvFloatImage fiLearn; ofCvContourFinder contourFinder; int threshold; float fLearnRate; }; #endif