RefractiveIndex/src/RelaxRateAnalysis.h

55 lines
1.1 KiB
C
Raw Normal View History

2012-01-24 15:13:07 +01:00
#pragma once
#include "AbstractAnalysis.h"
#include "Poco/Timer.h"
#include "rfiCvContourFinder.h"
2012-02-21 17:26:16 +01:00
#include "ofxOpenCv.h"
class RelaxRateAnalysis : public AbstractAnalysis
{
2012-01-24 15:13:07 +01:00
public:
RelaxRateAnalysis(): AbstractAnalysis("RELAXRATE"){;}
virtual ~RelaxRateAnalysis(){;}
2012-01-24 15:13:07 +01:00
public:
void setup(int camWidth, int camHeight);
void acquire();
2012-02-21 01:34:24 +01:00
void synthesise();
void displayresults();
void cleanup();
2012-02-21 01:34:24 +01:00
2012-01-24 15:13:07 +01:00
void draw();
void save_cb(Poco::Timer& timer);
protected:
void clearcfindervect();
void clearcfindervectdisplay();
2012-01-24 15:13:07 +01:00
bool _RUN_DONE;
float _flip, _level;
int _run_cnt, _save_cnt, _synth_save_cnt, _anim_cnt;
float c, _frame_cnt, _frame_cnt_max, _anim_cnt_max;
2012-02-21 01:34:24 +01:00
int _threshold;
2012-03-01 08:52:32 +01:00
int _maxblobs;
2012-02-21 01:34:24 +01:00
bool _show_image, _image_shown;
ofImage image1;
ofxCvColorImage cvColorImage1;
ofxCvGrayscaleImage cvGrayDiff1;
vector<rfiCvContourFinder*> cvContourFinderVect;
vector<rfiCvContourFinder*> cvContourFinderVectDisplay;
2012-02-21 01:34:24 +01:00
2012-01-24 15:13:07 +01:00
};