-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathOpenCVWindowExt.h
50 lines (38 loc) · 945 Bytes
/
OpenCVWindowExt.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
48
49
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
#pragma once
class COpenCVWindowExt
{
public:
COpenCVWindowExt (String strWindowName, int iFlag = 1);
~COpenCVWindowExt ();
bool ImRead (String strFileName);
void SetInitailScale (double dScale);
void RefreshImage ();
Mat m_matSrc;
vector<Mat> m_vecMatResize;
String m_strWindowName;
double m_dInitialScale;
double m_dNewScale;
double m_dScaleRatio;
double m_dCompensationX;
double m_dCompensationY;
int m_iScaleTimes;
int m_iMaxScaleTimes;
int m_iMinScaleTimes;
int m_iOrgW;
int m_iOrgH;
Point ptLButtonDown;
Point ptRButtonDown;
void SetHorzBarPos (int iPos);
void SetVertBarPos (int iPos);
int m_iHorzScrollBarPos;
int m_iVertScrollBarPos;
int m_iHorzScrollBarPos_copy;
int m_iVertScrollBarPos_copy;
int m_iHorzScrollBarRange_Min;
int m_iHorzScrollBarRange_Max;
int m_iVertScrollBarRange_Min;
int m_iVertScrollBarRange_Max;
};