Vislab Project
VislabCamera.hpp
1 #ifndef DEF_VISLAB_CAMERA_HPP
2 #define DEF_VISLAB_CAMERA_HPP
3 
4 // Includes, project.
5 #include <Pacpus/PacpusTools/AsyncWorkerBase.h>
6 #include <Pacpus/kernel/ComponentBase.h>
7 
8 // Includes, qt.
9 #include <QTimer>
10 
11 // Includes, lib3dv.
12 #include <lib3dv-1.2.0/lib3dv/device.h>
13 #include <lib3dv-1.2.0/lib3dv/error.h>
14 #include "DiskWriter.h"
15 #include "Display.h"
16 #include "VislabImageProcessor.h"
17 
18 
19 #include <boost/asio/io_service.hpp>
20 #include <boost/asio/ip/address.hpp>
21 #include <boost/bind.hpp>
22 #include <boost/ref.hpp>
23 #include <boost/thread.hpp>
24 
25 namespace pacpus
26 {
28  //: public pacpus::AsyncWorkerBase
29  {
30  //Q_OBJECT
31  public:
33  VislabCamera(const QString& name);
34 
36  virtual ~VislabCamera();
37 
39  void open();
40 
42  void close();
43 
44  std::vector<lib3dv::device> curr_devices;
45  DiskWriter diskwriterVideo;
46  DiskWriter diskwriterDisparite;
47  Display displayVideo;
48  Display displayDisparite;
49  lib3dv::error error;
50  unsigned int log_level;
51  lib3dv::image::type imageType;
52  };
53 }
54 
55 #endif
void close()
Close the webcam.
Definition: VislabCamera.cpp:69
Definition: VislabCamera.hpp:27
virtual ~VislabCamera()
Dtor of VislabCamera.
Definition: VislabCamera.cpp:36
Definition: VislabCamera.hpp:25
Definition: DiskWriter.h:34
void open()
Open a webcam.
Definition: VislabCamera.cpp:41
VislabCamera(const QString &name)
Ctor of VislabCamera.
Definition: VislabCamera.cpp:27
Definition: Display.h:28