RefractiveIndex/src/StrobeAnalysis.h

38 lines
677 B
C
Raw Normal View History

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 StrobeAnalysis : public AbstractAnalysis
2012-01-24 15:13:07 +01:00
{
public:
StrobeAnalysis(): AbstractAnalysis("STROBE"){;}
virtual ~StrobeAnalysis(){;}
2012-01-24 15:13:07 +01:00
public:
void setup(int camWidth, int camHeight);
void acquire();
void synthesise();
2012-01-24 15:13:07 +01:00
void draw();
void save_cb(Poco::Timer& timer);
protected:
bool _RUN_DONE;
int _strobe_cnt, _run_cnt, _strobe_cnt_max;
int _save_cnt;
2012-01-24 15:13:07 +01:00
int _frame_cnt, _frame_cnt_max, _save_cnt_max ;
int _strobe_interval;
bool _strobe_on;
2012-01-24 15:13:07 +01:00
};