Last change
on this file since 130 was 127, checked in by ldecherf, 8 years ago |
Version 1 du plugin Vislab testé sous linux
|
File size:
1021 bytes
|
Line | |
---|
1 | #ifndef DISPLAY_H
|
---|
2 | #define DISPLAY_H
|
---|
3 |
|
---|
4 | // Includes, project.
|
---|
5 | #include <Pacpus/PacpusTools/AsyncWorkerBase.h>
|
---|
6 | #include <Pacpus/kernel/ComponentBase.h>
|
---|
7 | #include <string.h>
|
---|
8 |
|
---|
9 | // Includes, qt.
|
---|
10 | #include <QTimer>
|
---|
11 | #include <QObject>
|
---|
12 |
|
---|
13 | // Includes, lib3dv.
|
---|
14 | #include <lib3dv-1.2.0/lib3dv/device.h>
|
---|
15 | //#include "20150310_lib3dv-1.2.0/src/disk_writer.h"
|
---|
16 | #include "DiskWriter.h"
|
---|
17 |
|
---|
18 | #include <boost/asio/io_service.hpp>
|
---|
19 | #include <boost/asio/ip/address.hpp>
|
---|
20 | #include <boost/bind.hpp>
|
---|
21 | #include <boost/ref.hpp>
|
---|
22 | #include <boost/thread.hpp>
|
---|
23 |
|
---|
24 | // Includes, opencv.
|
---|
25 | #include <opencv/cv.h>
|
---|
26 | #include <opencv/highgui.h>
|
---|
27 |
|
---|
28 | class Display : public QObject, public VislabImageProcessor
|
---|
29 | {
|
---|
30 |
|
---|
31 | Q_OBJECT
|
---|
32 | public:
|
---|
33 | Display(const QString& windowName, lib3dv::image::type::types imageType);
|
---|
34 | void process(cv::Mat const& frame);
|
---|
35 | Q_SLOT void DisplayFrame(cv::Mat const& frame);
|
---|
36 |
|
---|
37 |
|
---|
38 | private:
|
---|
39 | /// Display a frame.
|
---|
40 |
|
---|
41 | Q_SIGNAL void doDisplay(cv::Mat const& frame);
|
---|
42 | lib3dv::image::type::types mImageType;
|
---|
43 | std::string mWindowName;
|
---|
44 | };
|
---|
45 |
|
---|
46 | #endif // DISPLAY_H
|
---|
47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.