05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

ObjectExtractionWindow.h
Go to the documentation of this file.
1
7 #ifndef OBJECTEXTRACTIONWINDOW_H
8 #define OBJECTEXTRACTIONWINDOW_H
9
10 #include <QWidget>
11 #include "ProcessorWindow.h"
12 #include "ui_ObjectExtractionWindow.h"
13 #include "ProcessorObject.h"
14 #include "ProcessorThread.h"
15 #include <QVector3D>
16
17 #include <opencv2/opencv.hpp>
18 #include <opencv2/highgui/highgui.hpp>
19 #include <opencv2/imgproc/imgproc.hpp>
20
21 #include <QDebug>
31 class ObjectExtractionWindow : public ProcessorWindow
32 {
33 Q_OBJECT
34
35 public:
43 ObjectExtractionWindow(ProcessorThread* pt,QWidget *parent = 0, Qt::WindowFlags flags = 0);
47 ~ObjectExtractionWindow();
48
49 private:
50 Ui::ObjectExtractionWindow ui;
51
52 public slots:
59 void frameIn(int id, cv::Mat* frame);
60 private slots:
61 void object_picked(int x, int y) {
62 emit signalSpecial(QString("object_picked " + QString::number(x) + " " + QString::number(y)));
63 }
64 void get_background() {
65 emit signalSpecial(QString("get_background"));
66 }
67 void save_background() {
68 emit signalSpecial(QString("save_background"));
69 }
70 void load_background() {
71 emit signalSpecial(QString("load_background"));
72 }
73
74 void on_pushButton_screenshot_clicked() {
75 qDebug() << "on_pushButton_screenshot_clicked()";
76 emit signalSpecial(QString("screenshot"));
77 }
78 };
80 #endif // OBJECTEXTRACTIONWINDOW_H
ProcessorWindow.h
ProcessorWindow
Generic camera processor window base class.
Definition: ProcessorWindow.h:32
ProcessorThread.h
ProcessorWindow::signalSpecial
void signalSpecial(QString)
For communication between ProcessorObject and ProcessorWindow.
ObjectExtractionWindow::~ObjectExtractionWindow
~ObjectExtractionWindow()
Default destructor, cleans up.
ObjectExtractionWindow::frameIn
void frameIn(int id, cv::Mat *frame)
Update displayed picture.
ProcessorThread
Wrapper object containing single processor working thread.
Definition: ProcessorThread.h:18
ObjectExtractionWindow
Object extraction processor preview window.
Definition: ObjectExtractionWindow.h:31
ProcessorObject.h
ObjectExtractionWindow::ObjectExtractionWindow
ObjectExtractionWindow(ProcessorThread *pt, QWidget *parent=0, Qt::WindowFlags flags=0)
Default constructor, initializes object extraction preview window.
ProcessorWindow::pt
ProcessorThread * pt
Pointer to corresponding ProcessorThread.
Definition: ProcessorWindow.h:98