-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoolsemitracking.h
47 lines (35 loc) · 1.02 KB
/
toolsemitracking.h
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
39
40
41
42
43
44
45
46
47
#ifndef TOOLSEMITRACKING_H
#define TOOLSEMITRACKING_H
#include "toolimage.h"
#include "videoviewbase.h"
#include "trajectorypoint.h"
class ToolSemiTracking : public ToolImage
{
Q_OBJECT
public:
ToolSemiTracking( VideoViewBase *parent );
~ToolSemiTracking();
public:
QVector<QPointF> mBoundaryPts; //#[(x1, y1), ...] points of detector boundary
// temporal drawing
//
QPoint mPrePoint;
// bicycle loop detector area
QList< TrajectoryPoint* > mPointItems;
QList< QGraphicsLineItem* > mLineItems;
public slots:
void mouseMove( QMouseEvent *mouseEvent);
void mousePress( QMouseEvent *mouseEvent);
void keyPress( QKeyEvent *keyEvent);
void actNextID();
public:
// trajectory
//
int mCurrentVehicleID; // vehicle ID maximum
private:
Mat mMixedImage; // bottom image mixed with background image to show
Mat mSubImage; // real image by selecting using mouse click
int mEnlargeRate; // enlarge rate to show in right window
int mSubWndWidth; // sub window width/2
};
#endif // TOOLSEMITRACKING_H