Rev | Line | |
---|
[127] | 1 | #ifndef VISLABIMAGEPROCESSOR_H
|
---|
| 2 | #define VISLABIMAGEPROCESSOR_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 |
|
---|
[142] | 14 | #include <lib3dv/device.h>
|
---|
[127] | 15 |
|
---|
[147] | 16 | #if (OPENCV_MAJOR == 3)
|
---|
[142] | 17 | #include <opencv2/opencv.hpp>
|
---|
[147] | 18 | #include <opencv2/highgui.hpp>
|
---|
| 19 | #else
|
---|
| 20 | #include <opencv/cv.h>
|
---|
| 21 | #include <opencv/highgui.h>
|
---|
| 22 | #endif
|
---|
[127] | 23 |
|
---|
| 24 | class VislabImageProcessor
|
---|
| 25 | {
|
---|
| 26 | public:
|
---|
| 27 | VislabImageProcessor(const QString& name, lib3dv::image::type::types imageType);
|
---|
[142] | 28 | void image_callback(boost::shared_ptr<const lib3dv::image>);
|
---|
[127] | 29 | virtual void process(cv::Mat const& frame) = 0;
|
---|
| 30 | QString getName();
|
---|
| 31 |
|
---|
| 32 | private:
|
---|
| 33 | QString mName;
|
---|
| 34 | lib3dv::image::type::types mImageType;
|
---|
| 35 | };
|
---|
| 36 |
|
---|
| 37 | #endif // VISLABIMAGEPROCESSOR_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.