|
Last change
on this file since 142 was 142, checked in by ldecherf, 9 years ago |
|
Ajout de la classe outputter et modification d'openCV
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #ifndef DISKWRITER_H
|
|---|
| 2 | #define DISKWRITER_H
|
|---|
| 3 |
|
|---|
| 4 | // Includes, project.
|
|---|
| 5 | #include <Pacpus/PacpusTools/AsyncWorkerBase.h>
|
|---|
| 6 | #include <Pacpus/kernel/ComponentBase.h>
|
|---|
| 7 | #include <Pacpus/kernel/DbiteFile.h>
|
|---|
| 8 | #include <Pacpus/kernel/DbiteFileTypes.h>
|
|---|
| 9 | #include <Pacpus/kernel/DbiteException.h>
|
|---|
| 10 |
|
|---|
| 11 | // Includes, qt.
|
|---|
| 12 | #include <QTimer>
|
|---|
| 13 |
|
|---|
| 14 | // Includes, lib3dv.
|
|---|
| 15 | #include <lib3dv/device.h>
|
|---|
| 16 | //#include "20150310_lib3dv-1.2.0/src/DiskWriter.h"
|
|---|
| 17 | #include "DiskWriter.h"
|
|---|
| 18 | #include "VislabImageProcessor.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 |
|
|---|
| 27 | using pacpus::DbiteFile;
|
|---|
| 28 | using pacpus::DbiteException;
|
|---|
| 29 | using pacpus::WriteMode;
|
|---|
| 30 |
|
|---|
| 31 | class DiskWriter : public VislabImageProcessor
|
|---|
| 32 | {
|
|---|
| 33 | public:
|
|---|
| 34 |
|
|---|
| 35 | /// Ctor of CVWebcamComponent.
|
|---|
| 36 | DiskWriter(const QString name, lib3dv::image::type::types imageType);
|
|---|
| 37 |
|
|---|
| 38 | void process(cv::Mat const& frame);
|
|---|
| 39 |
|
|---|
| 40 | private:
|
|---|
| 41 | DbiteFile mDBTFile;
|
|---|
| 42 | QString mFilenameTemplate;
|
|---|
| 43 | unsigned int mImageCounter;
|
|---|
| 44 | QString mDbtfilename;
|
|---|
| 45 | lib3dv::image::type::types mImageType;
|
|---|
| 46 |
|
|---|
| 47 | };
|
|---|
| 48 |
|
|---|
| 49 | #endif // DiskWriter_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.