added openCV.h to each class
This commit is contained in:
parent
adbe746afc
commit
9fd244dcc1
@ -13,8 +13,7 @@ int main() {
|
|||||||
bool fullscreen;
|
bool fullscreen;
|
||||||
|
|
||||||
fullscreen = true;
|
fullscreen = true;
|
||||||
|
//fullscreen = false;
|
||||||
fullscreen = false;
|
|
||||||
|
|
||||||
cout << "> display configuration" << endl;
|
cout << "> display configuration" << endl;
|
||||||
cout << "* fullscreen: " << (fullscreen ? "yes" : "no") << endl;
|
cout << "* fullscreen: " << (fullscreen ? "yes" : "no") << endl;
|
||||||
|
|||||||
@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
|
|
||||||
class CamNoiseAnalysis : public AbstractAnalysis
|
class CamNoiseAnalysis : public AbstractAnalysis
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
|
|
||||||
class ColorMultiAnalysis : public AbstractAnalysis
|
class ColorMultiAnalysis : public AbstractAnalysis
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
|
|
||||||
class ColorSingleAnalysis : public AbstractAnalysis
|
class ColorSingleAnalysis : public AbstractAnalysis
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
|
|
||||||
class DiffNoiseAnalysis : public AbstractAnalysis
|
class DiffNoiseAnalysis : public AbstractAnalysis
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
class IResponseAnalysis : public AbstractAnalysis
|
class IResponseAnalysis : public AbstractAnalysis
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -72,6 +72,7 @@ void RelaxRateAnalysis::acquire()
|
|||||||
|
|
||||||
void RelaxRateAnalysis::synthesise()
|
void RelaxRateAnalysis::synthesise()
|
||||||
{
|
{
|
||||||
|
|
||||||
// _saved_filenames has all the file names of all the saved images
|
// _saved_filenames has all the file names of all the saved images
|
||||||
while(!_RUN_DONE)
|
while(!_RUN_DONE)
|
||||||
Thread::sleep(3);
|
Thread::sleep(3);
|
||||||
@ -250,6 +251,7 @@ void RelaxRateAnalysis::draw()
|
|||||||
ofEnableAlphaBlending();
|
ofEnableAlphaBlending();
|
||||||
|
|
||||||
ofSetColor(255, 255, 255, 255);
|
ofSetColor(255, 255, 255, 255);
|
||||||
|
|
||||||
image2.setFromPixels(image1.getPixels(),image1.width,image1.height, OF_IMAGE_COLOR);
|
image2.setFromPixels(image1.getPixels(),image1.width,image1.height, OF_IMAGE_COLOR);
|
||||||
image2.draw(0,0, ofGetWidth(), ofGetHeight());
|
image2.draw(0,0, ofGetWidth(), ofGetHeight());
|
||||||
|
|
||||||
@ -261,13 +263,10 @@ void RelaxRateAnalysis::draw()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// this runs at save_cb timer rate = DELTA_T_SAVE
|
// this runs at save_cb timer rate = DELTA_T_SAVE
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
class RelaxRateAnalysis : public AbstractAnalysis
|
class RelaxRateAnalysis : public AbstractAnalysis
|
||||||
{
|
{
|
||||||
|
|||||||
@ -78,6 +78,10 @@ void ShadowScapesAnalysis::acquire()
|
|||||||
|
|
||||||
void ShadowScapesAnalysis::synthesise()
|
void ShadowScapesAnalysis::synthesise()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
//cvImage1.allocate(image2.getWidth(), image2.getHeight());
|
||||||
|
//cvImage1.setFromPixels(image2);
|
||||||
|
|
||||||
// _saved_filenames has all the file names of all the saved images
|
// _saved_filenames has all the file names of all the saved images
|
||||||
while(!_RUN_DONE)
|
while(!_RUN_DONE)
|
||||||
Thread::sleep(3);
|
Thread::sleep(3);
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
enum shadow_type {
|
enum shadow_type {
|
||||||
H, V, D,
|
H, V, D,
|
||||||
};
|
};
|
||||||
@ -40,8 +42,8 @@ protected:
|
|||||||
float c, _frame_cnt, _frame_cnt_max, _anim_cnt_max;
|
float c, _frame_cnt, _frame_cnt_max, _anim_cnt_max;
|
||||||
|
|
||||||
bool _show_image, _image_shown;
|
bool _show_image, _image_shown;
|
||||||
ofImage image1;
|
ofImage image1;
|
||||||
ofImage image2;
|
ofImage image2;
|
||||||
ofxCvColorImage colorImg;
|
ofxCvColorImage cvImage1;
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -6,8 +6,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "AbstractAnalysis.h"
|
#include "AbstractAnalysis.h"
|
||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
|
|
||||||
class ShapeFromShadingAnalysis : public AbstractAnalysis
|
class ShapeFromShadingAnalysis : public AbstractAnalysis
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#include "Poco/Timer.h"
|
#include "Poco/Timer.h"
|
||||||
|
|
||||||
|
#include "ofxOpenCv.h"
|
||||||
|
|
||||||
|
|
||||||
class StrobeAnalysis : public AbstractAnalysis
|
class StrobeAnalysis : public AbstractAnalysis
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user