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