-
Notifications
You must be signed in to change notification settings - Fork 0
/
uiHoughDlg.h
64 lines (51 loc) · 1.29 KB
/
uiHoughDlg.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef UI_HOUGH_DLG_H
#define UI_HOUGH_DLG_H
#include <QWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QMessageBox>
#include <QtGui/QRegExpValidator>
#include "algDetect.h"
#include "baseTransform.h"
#include "baseThread.h"
class UiHoughDlg :public QWidget
{
Q_OBJECT
public:
explicit UiHoughDlg(baseImage& image, AlgDetect::panCircle& circle, AlgDetect::houghParam& hParam,
QWidget* parent = 0);
~UiHoughDlg();
void AddTransform(baseTransform* transform);
public slots:
void ShowResult();
void HoughTransform();
void ResetParams();
private:
baseImage& image;
AlgDetect::panCircle& cle;
AlgDetect::houghParam& hParam;
baseThread* subThread;
QPushButton* paramOk;
QPushButton* paramReset;
QLineEdit* iMin;
QLineEdit* iMax;
QLineEdit* jMin;
QLineEdit* jMax;
QLineEdit* rMin;
QLineEdit* rMax;
QLineEdit* searchStep;
QLineEdit* a;
QLineEdit* b;
QLineEdit* r;
QRegExpValidator* iMinValidator;
QRegExpValidator* iMaxValidator;
QRegExpValidator* jMinValidator;
QRegExpValidator* jMaxValidator;
QRegExpValidator* rMinValidator;
QRegExpValidator* rMaxValidator;
QRegExpValidator* searchStepValidator;
};
#endif