-
Notifications
You must be signed in to change notification settings - Fork 3
/
setcolorrange.h
50 lines (41 loc) · 1.19 KB
/
setcolorrange.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
#ifndef SETCOLORRANGE_H
#define SETCOLORRANGE_H
#include <QWidget>
#include <QMessageBox>
#include <QCloseEvent>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <vision.h>
namespace Ui {
class SetColorRange;
}
class SetColorRange : public QWidget
{
Q_OBJECT
public:
explicit SetColorRange(QWidget *parent = 0);
void set_vision(Vision *eye, int cam_id = 0);
void set_camid(int cam_id);
void set_subject(string subject);
~SetColorRange();
public slots:
void updateVisionUI(QImage);
private slots:
void on_horizontalSlider_sliderMoved(int position);
void on_horizontalSlider_2_sliderMoved(int position);
void on_horizontalSlider_3_sliderMoved(int position);
void on_horizontalSlider_4_sliderMoved(int position);
void on_horizontalSlider_5_sliderMoved(int position);
void on_horizontalSlider_6_sliderMoved(int position);
void showEvent(QShowEvent *event);
void closeEvent(QCloseEvent *event);
void on_pushButton_2_clicked();
void on_pushButton_clicked();
private:
string subject;
Vision *eye;
int cam_id;
Ui::SetColorRange *ui;
};
#endif // SETCOLORRANGE_H