added openCV.h to each class
This commit is contained in:
parent
adbe746afc
commit
9fd244dcc1
@ -13,8 +13,7 @@ int main() {
|
||||
bool fullscreen;
|
||||
|
||||
fullscreen = true;
|
||||
|
||||
fullscreen = false;
|
||||
//fullscreen = false;
|
||||
|
||||
cout << "> display configuration" << endl;
|
||||
cout << "* fullscreen: " << (fullscreen ? "yes" : "no") << endl;
|
||||
|
||||
@ -9,6 +9,9 @@
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
|
||||
class CamNoiseAnalysis : public AbstractAnalysis
|
||||
{
|
||||
public:
|
||||
|
||||
@ -4,6 +4,9 @@
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
|
||||
class ColorMultiAnalysis : public AbstractAnalysis
|
||||
{
|
||||
public:
|
||||
|
||||
@ -9,6 +9,9 @@
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
|
||||
class ColorSingleAnalysis : public AbstractAnalysis
|
||||
{
|
||||
public:
|
||||
|
||||
@ -9,6 +9,9 @@
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
|
||||
class DiffNoiseAnalysis : public AbstractAnalysis
|
||||
{
|
||||
public:
|
||||
|
||||
@ -9,6 +9,8 @@
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
class IResponseAnalysis : public AbstractAnalysis
|
||||
{
|
||||
public:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
class RelaxRateAnalysis : public AbstractAnalysis
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -6,6 +6,8 @@
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
enum shadow_type {
|
||||
H, V, D,
|
||||
};
|
||||
@ -42,6 +44,6 @@ protected:
|
||||
bool _show_image, _image_shown;
|
||||
ofImage image1;
|
||||
ofImage image2;
|
||||
ofxCvColorImage colorImg;
|
||||
ofxCvColorImage cvImage1;
|
||||
|
||||
};
|
||||
@ -6,8 +6,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "AbstractAnalysis.h"
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
|
||||
class ShapeFromShadingAnalysis : public AbstractAnalysis
|
||||
{
|
||||
|
||||
@ -9,6 +9,8 @@
|
||||
|
||||
#include "Poco/Timer.h"
|
||||
|
||||
#include "ofxOpenCv.h"
|
||||
|
||||
|
||||
class StrobeAnalysis : public AbstractAnalysis
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user