Vislab Project
Display.h
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:
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 
Display(const QString &windowName, lib3dv::image::type::types imageType)
Definition: Display.cpp:8
Q_SLOT void DisplayFrame(cv::Mat const &frame)
Definition: Display.cpp:16
void process(cv::Mat const &frame)
Definition: Display.cpp:24
Definition: VislabImageProcessor.h:20
Definition: Display.h:28