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

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

Output modification

File size: 1.5 KB
RevLine 
[134]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-1.2.0/lib3dv/device.h>
14#include <lib3dv-1.2.0/lib3dv/error.h>
15#include "DiskWriter.h"
16#include "Display.h"
17#include "VislabImageProcessor.h"
18#include "Outputter.h"
19#include "VislabComponent.hpp"
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{
29 class VislabCamera
30 //: public pacpus::AsyncWorkerBase
31 {
32 //Q_OBJECT
33 public:
34 /// Ctor of VislabCamera.
35 VislabCamera(const QString& name);
36
37 /// Dtor of VislabCamera.
38 virtual ~VislabCamera();
39
40 /// Open a webcam.
41 void open();
42
43 /// Close the webcam.
[133]44 void close();
45
[134]46 void setVideoOutput(OutputInterface<cv::Mat, VislabComponent>* output);
47 void setDispariteOutput(OutputInterface<cv::Mat, VislabComponent>* output);
48
49 std::vector<lib3dv::device> curr_devices;
50 DiskWriter diskwriterVideo;
51 DiskWriter diskwriterDisparite;
52 Display displayVideo;
53 Display displayDisparite;
54 lib3dv::error error;
55 unsigned int log_level;
56 lib3dv::image::type imageType;
57 Outputter outputVideo;
58 Outputter outputDisparite;
59
60 };
61}
62
63#endif
Note: See TracBrowser for help on using the repository browser.