2012-01-24 15:13:07 +01:00
|
|
|
/*
|
|
|
|
|
~ author: dviid
|
|
|
|
|
~ contact: dviid@labs.ciid.dk
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "AbstractAnalysis.h"
|
|
|
|
|
|
|
|
|
|
#include "Poco/Timer.h"
|
|
|
|
|
|
|
|
|
|
class DiffNoiseAnalysis : public AbstractAnalysis
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
DiffNoiseAnalysis(): AbstractAnalysis("DIFF_NOISE"){;}
|
|
|
|
|
virtual ~DiffNoiseAnalysis(){;}
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
void setup(int camWidth, int camHeight);
|
2012-02-11 18:54:46 +01:00
|
|
|
void synthesize();
|
2012-01-24 15:13:07 +01:00
|
|
|
void draw();
|
|
|
|
|
|
|
|
|
|
void save_cb(Poco::Timer& timer);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
bool _RUN_DONE;
|
|
|
|
|
int _run_cnt, _save_cnt;
|
|
|
|
|
float c, _frame_cnt, _frame_cnt_max;
|
|
|
|
|
|
|
|
|
|
};
|