source: pacpussensors/trunk/Vislab/VislabCamera.hpp@ 131

Last change on this file since 131 was 131, checked in by ldecherf, 8 years ago

Comments

File size: 1.1 KB
Line 
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
25namespace pacpus
26{
27 class VislabCamera
28 //: public pacpus::AsyncWorkerBase
29 {
30 //Q_OBJECT
31 public:
32 /// Ctor of VislabCamera.
33 VislabCamera(const QString& name);
34
35 /// Dtor of VislabCamera.
36 virtual ~VislabCamera();
37
38 /// Open a webcam.
39 void open();
40
41 /// Close the webcam.
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
Note: See TracBrowser for help on using the repository browser.