forked from nbatfai/SamuMovie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Converter.h
51 lines (40 loc) · 935 Bytes
/
Converter.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
#ifndef SVC_H
#define SVC_H
#include <iostream>
#include <vector>
#include <exception>
#include <iomanip>
//OpenCV
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
//Qt
#include <QDialog>
#include <QFileDialog>
#include <QString>
#include <QPushButton>
#include <QGridLayout>
#include <QLabel>
#include <QString>
class Converter : public QDialog
{
Q_OBJECT
public:
Converter(size_t windowsWidth, size_t windowsHeight);
std::vector< std::vector< std::vector<bool> > > m_lattices;
public slots:
void Convert();
void openFile();
private:
QString movieFileName;
cv::VideoCapture movieCap;
void ConvertFrameToGrey(cv::Mat& frame);
size_t movieWindowWidth, movieWindowHeight;
size_t mMovieWidth, mMovieHeight;
size_t movieCapWidth, movieCapHeight;
QPushButton *btnOpen;
QPushButton *btnLaunchSamu;
QLabel *label;
};
#endif