forked from tiendan/OpenGazer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestWindow.h
More file actions
40 lines (32 loc) · 714 Bytes
/
Copy pathTestWindow.h
File metadata and controls
40 lines (32 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include "ImageWindow.h"
#include "Point.h"
#include "Component.h"
class TestWindow: public Component {
public:
TestWindow(const std::vector<Point> &points);
~TestWindow();
// Main processing function
void process();
// Calibration API functions (for future use)
void start();
void pointStart();
void pointEnd();
void abortTesting();
void testingEnded();
void draw();
bool isActive();
Point getActivePoint();
int getPointNumber();
int getPointFrameNo();
bool isLastFrame();
bool isLastPoint();
bool isFinished();
bool shouldStartNextPoint();
private:
int _frameNumber;
std::vector<Point> _points;
ImageWindow _window;
cv::Mat _screenImage;
cv::Mat _targetImage;
};