added openCV.h to each class

This commit is contained in:
Jamie Allen 2012-02-21 17:26:16 +01:00
parent adbe746afc
commit 9fd244dcc1
12 changed files with 32 additions and 8 deletions

View File

@ -13,8 +13,7 @@ int main() {
bool fullscreen;
fullscreen = true;
fullscreen = false;
//fullscreen = false;
cout << "> display configuration" << endl;
cout << "* fullscreen: " << (fullscreen ? "yes" : "no") << endl;

View File

@ -9,6 +9,9 @@
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
class CamNoiseAnalysis : public AbstractAnalysis
{
public:

View File

@ -4,6 +4,9 @@
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
class ColorMultiAnalysis : public AbstractAnalysis
{
public:

View File

@ -9,6 +9,9 @@
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
class ColorSingleAnalysis : public AbstractAnalysis
{
public:

View File

@ -9,6 +9,9 @@
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
class DiffNoiseAnalysis : public AbstractAnalysis
{
public:

View File

@ -9,6 +9,8 @@
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
class IResponseAnalysis : public AbstractAnalysis
{
public:

View File

@ -72,6 +72,7 @@ void RelaxRateAnalysis::acquire()
void RelaxRateAnalysis::synthesise()
{
// _saved_filenames has all the file names of all the saved images
while(!_RUN_DONE)
Thread::sleep(3);
@ -250,6 +251,7 @@ void RelaxRateAnalysis::draw()
ofEnableAlphaBlending();
ofSetColor(255, 255, 255, 255);
image2.setFromPixels(image1.getPixels(),image1.width,image1.height, OF_IMAGE_COLOR);
image2.draw(0,0, ofGetWidth(), ofGetHeight());
@ -261,13 +263,10 @@ void RelaxRateAnalysis::draw()
break;
}
default:
break;
}
}
// this runs at save_cb timer rate = DELTA_T_SAVE

View File

@ -5,6 +5,7 @@
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
class RelaxRateAnalysis : public AbstractAnalysis
{

View File

@ -78,6 +78,10 @@ void ShadowScapesAnalysis::acquire()
void ShadowScapesAnalysis::synthesise()
{
//cvImage1.allocate(image2.getWidth(), image2.getHeight());
//cvImage1.setFromPixels(image2);
// _saved_filenames has all the file names of all the saved images
while(!_RUN_DONE)
Thread::sleep(3);

View File

@ -6,6 +6,8 @@
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
enum shadow_type {
H, V, D,
};
@ -40,8 +42,8 @@ protected:
float c, _frame_cnt, _frame_cnt_max, _anim_cnt_max;
bool _show_image, _image_shown;
ofImage image1;
ofImage image2;
ofxCvColorImage colorImg;
ofImage image1;
ofImage image2;
ofxCvColorImage cvImage1;
};

View File

@ -6,8 +6,11 @@
#pragma once
#include "AbstractAnalysis.h"
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
class ShapeFromShadingAnalysis : public AbstractAnalysis
{

View File

@ -9,6 +9,8 @@
#include "Poco/Timer.h"
#include "ofxOpenCv.h"
class StrobeAnalysis : public AbstractAnalysis
{