-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
73 lines (63 loc) · 1.94 KB
/
mainwindow.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
65
66
67
68
69
70
71
72
73
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "imagestitcher.h"
#include "metadataparser.h"
#include "objectrecognizer.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void displayImage(cv::Mat& image);
void saveCurrentImage();
void stitchImagesClicked();
void startImageStitchingClicked();
void detectButtonClicked();
void gaussianSdChanged(int value);
void cannyLowChanged(int value);
void cannyHighChanged(int value);
void houghVoteChanged(int value);
void houghMinLengthChanged(int value);
void houghMinDistanceChanged(int value);
void imageScaleChangedOR(int value);
void polyErrorChangedOR(int value);
void IS_scaleChanged(int value);
void IS_radioButtonChanged();
void stitchingUpdate(StitchingUpdateData *data);
int getGaussianBlurValue();
void displayRecognitionResult();
void stitchingAngleChanged(double value);
void stitchingDistanceChanged(double value);
void stitchingHeuristicChanged(double value);
void stitchingStepClicked();
void stitchingMatchesUpdate(StitchingMatchesUpdateData data);
void displayProposedMatches();
void stitchStepRunClicked();
void mouseMovedOnDisplay(int x, int y);
private:
void detectObjects();
//For getting frames from camera/video/picture
cv::VideoCapture capWebcam;
int curIndex;
long int counter;
Ui::MainWindow *ui;
ObjectRecognizer objectRecognizer;
ImageStitcher* stitcher;
int saveImageCounter;
StitchingUpdateData* lastData;
RecognizerResults* lastResult;
StitchingMatchesUpdateData currentMatches;
MetaDataParser parser;
MetaData currentORData;
};
#endif // MAINWINDOW_H