2012-01-24 15:13:07 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "AbstractAnalysis.h"
|
|
|
|
|
|
|
|
|
|
#include "Poco/Timer.h"
|
2012-02-18 20:37:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class RelaxRateAnalysis : public AbstractAnalysis
|
|
|
|
|
{
|
2012-01-24 15:13:07 +01:00
|
|
|
public:
|
2012-02-18 20:37:22 +01:00
|
|
|
RelaxRateAnalysis(): AbstractAnalysis("RELAXRATE"){;}
|
|
|
|
|
virtual ~RelaxRateAnalysis(){;}
|
2012-01-24 15:13:07 +01:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
void setup(int camWidth, int camHeight);
|
2012-02-15 08:43:43 +01:00
|
|
|
void acquire();
|
|
|
|
|
void synthesise();
|
2012-01-24 15:13:07 +01:00
|
|
|
void draw();
|
|
|
|
|
|
|
|
|
|
void save_cb(Poco::Timer& timer);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
bool _RUN_DONE;
|
2012-02-18 20:37:22 +01:00
|
|
|
float _flip, _level;
|
2012-02-20 19:48:43 +01:00
|
|
|
int _run_cnt, _save_cnt, _anim_cnt;
|
2012-02-20 03:40:38 +01:00
|
|
|
float c, _frame_cnt, _frame_cnt_max, _anim_cnt_max;
|
2012-01-24 15:13:07 +01:00
|
|
|
};
|