05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Processor.h
Go to the documentation of this file.
1
7 #ifndef PROCESSOR_H
8 #define PROCESSOR_H
9
10 #include <string>
11 #include <vector>
12 #include <QObject>
13 #include <QTime>
14
15 #include "common.h"
16
17 #include <opencv2/opencv.hpp>
18
19 #include "cxmlio.h"
20
21 using namespace std;
28 class Processor : public cXmlIO
29 {
30 Q_OBJECT
31
32 public:
36 Processor() {
37 m_time.start();
38 }
39
40 public:
41
45 enum InputType {
46 InputTypeMat,
47 InputTypePoint2,
48 InputTypePoint3
49 };
53 InputType inputType;
57 vector<cv::Mat *> inputMat;
61 vector<vector<cv::Point2f> *> inputPoint2;
65 vector<vector<cv::Point3d> *> inputPoint3;
69 vector<QString *> cameraName;
73 vector<cv::Mat *> outputMat;
77 vector<vector<cv::Point2f> *> outputPoint2;
81 vector<vector<cv::Point3d> *> outputPoint3;
85 QTime m_time;
86
87 public:
93 virtual int start();
101 virtual int process(int t1,int t2);
108 virtual int processSpecial(string s);
114 virtual int stop();
115
116 signals:
122 void writeInfo(QString info);
123
124 };
126 #endif
Processor::m_time
QTime m_time
Internal clock.
Definition: Processor.h:85
cxmlio.h
Processor::cameraName
vector< QString * > cameraName
Vector of pointers to connected cameras names.
Definition: Processor.h:69
Processor::inputPoint2
vector< vector< cv::Point2f > * > inputPoint2
Vector of input series of 2D points.
Definition: Processor.h:61
Processor
Image processor base class.
Definition: Processor.h:28
Processor::inputMat
vector< cv::Mat * > inputMat
Vector of input images.
Definition: Processor.h:57
std
Processor::InputTypePoint2
Definition: Processor.h:47
Processor::outputMat
vector< cv::Mat * > outputMat
Vector of output images.
Definition: Processor.h:73
Processor::outputPoint2
vector< vector< cv::Point2f > * > outputPoint2
Vector of output series of 2D points.
Definition: Processor.h:77
Processor::Processor
Processor()
Starts internal clock.
Definition: Processor.h:36
Processor::outputPoint3
vector< vector< cv::Point3d > * > outputPoint3
Vector of input series of 3D points.
Definition: Processor.h:81
cXmlIO
Delivers XML file serialisation and deserialisation methods for modules.
Definition: cxmlio.h:22
Processor::InputTypeMat
Definition: Processor.h:46
common.h
Processor::InputType
InputType
Processor input data type enum.
Definition: Processor.h:45
Processor::inputPoint3
vector< vector< cv::Point3d > * > inputPoint3
Vector of input series of 3D points.
Definition: Processor.h:65
Processor::inputType
InputType inputType
Processor input data type.
Definition: Processor.h:53