Repository navigation
Expand file tree
/
Copy pathstillobject.h
More file actions
73 lines (54 loc) · 1.5 KB
/
Copy pathstillobject.h
File metadata and controls
73 lines (54 loc) · 1.5 KB
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
65
66
67
68
69
70
71
72
73
#ifndef STILLOBJECT_H
#define STILLOBJECT_H
#include <QWidget>
#include "stilldetection.h"
#include <QFileDialog>
#include <QString>
#include <QResizeEvent>
#include <QKeyEvent>
#include <QDebug>
#include <QDirIterator>
#include <QFileInfo>
#include <QLabel>
#include <QMessageBox>
namespace Ui {
class StillObject;
}
class StillObject : public QWidget, public StillDetection
{
Q_OBJECT
signals:
void doneDetection();
public:
explicit StillObject(QWidget *parent = 0);
~StillObject();
protected:
void resizeEvent(QResizeEvent *event);
void mouseDoubleClickEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
private slots:
void on_toolButton_PictureSelection_clicked();
void on_doubleSpinBox_ScaleFactor_valueChanged(double arg1);
void on_spinBox_MinNeighbors_valueChanged(int arg1);
void on_detectiondone();
void on_checkBox_ColorCheck_clicked(bool checked);
void on_pushButton_outputResults_clicked();
void on_checkBox_grayscale_clicked(bool checked);
private:
void displayOnGUI();
void initFolderIterator();
void startDetection();
void performDetection();
void updateColorBound();
QImage colorPicker(cv::Mat image);
void resizeProcessedPictures();
int ColorBound(const int color);
Ui::StillObject *ui;
QString PicturePath;
QDirIterator *folderIt = NULL;
cv::Vec3b pixelColorHSV;
cv::Mat mat_colorResult;
int UpperBound_color[3];
int LowerBound_color[3];
};
#endif // STILLOBJECT_H