source: pacpussensors/trunk/Vislab/VislabCamera.hpp

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

Ajout CameraPlayer

File size: 1.5 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#include <Pacpus/kernel/InputOutputInterface.h>
8
9// Includes, qt.
10#include <QTimer>
11
12// Includes, lib3dv.
13#include <lib3dv/device.h>
14#include <lib3dv/error.h>
15#include <lib3dv/image.h>
16#include "DiskWriter.h"
17#include "Display.h"
18#include "VislabImageProcessor.h"
19#include "Outputter.h"
20
21#include <boost/asio/io_service.hpp>
22#include <boost/asio/ip/address.hpp>
23#include <boost/bind.hpp>
24#include <boost/ref.hpp>
25#include <boost/thread.hpp>
26
27namespace pacpus
28{
29class VislabComponent;
30
31 class VislabCamera
32 //: public pacpus::AsyncWorkerBase
33 {
34 //Q_OBJECT
35 public:
36 /// Ctor of VislabCamera.
37 VislabCamera(const QString& name);
38
39 /// Dtor of VislabCamera.
40 virtual ~VislabCamera();
41
42 /// Open a webcam.
43 void open();
44
45 /// Close the webcam.
46 void close();
47
48 void setVideoOutput(OutputInterface<cv::Mat, VislabComponent>* output);
49 void setDispariteOutput(OutputInterface<cv::Mat, VislabComponent>* output);
50
51 std::vector<lib3dv::device> curr_devices;
52 DiskWriter diskwriterVideo;
53 DiskWriter diskwriterDisparite;
54 //Display displayVideo;
55 //Display displayDisparite;
56 lib3dv::error error;
57 unsigned int log_level;
58 lib3dv::image::type::types imageType;
59 Outputter outputVideo;
60 Outputter outputDisparite;
61 bool broadcast;
62
63 };
64}
65
66#endif
Note: See TracBrowser for help on using the repository browser.