FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
Loading...
Searching...
No Matches
batch.h
1#ifndef BATCH_H
2#define BATCH_H
3
4#include <stdlib.h>
5#include <QAbstractItemView>
6#include <QCheckBox>
7#include <QComboBox>
8#include <QDateTime>
9#include <QDebug>
10#include <QDir>
11#include <QFile>
12#include <QFileDialog>
13#include <QFileInfo>
14#include <QHash>
15#include <QImage>
16#include <QKeySequence>
17#include <QLCDNumber>
18#include <QLabel>
19#include <QLayout>
20#include <QLineEdit>
21#include <QListView>
22#include <QMainWindow>
23#include <QMessageBox>
24#include <QProgressBar>
25#include <QPushButton>
26#include <QSettings>
27#include <QSharedPointer>
28#include <QShortcut>
29#include <QSlider>
30#include <QSpinBox>
31#include <QString>
32#include <QTableWidgetItem>
33#include <QThread>
34#include <QTimer>
35#include <QTreeView>
36#include <QWidget>
37#include <ctime>
38#include <fstream>
39#include <opencv2/core/ocl.hpp>
40#include <string>
41#include <vector>
42#include "opencv2/highgui/highgui.hpp"
43#include "opencv2/imgproc/imgproc.hpp"
44#include "tracking.h"
45
46namespace Ui {
47class Batch;
48}
49
50class Batch : public QWidget {
51 Q_OBJECT
52
53 public:
54 explicit Batch(QWidget *parent = nullptr);
55 Batch(const Batch &T) = delete;
56 Batch &operator=(const Batch &T) = delete;
57 Batch &operator=(Batch &&T) = delete;
58 Batch(Batch &&T) = delete;
59
60 ~Batch();
61
62 private:
63 Ui::Batch *ui;
64 QHash<QString, QString> parameterList;
65
66 QThread *thread;
68
69 QShortcut *wShortcut;
70 QShortcut *qShortcut;
71 QShortcut *aShortcut;
72 QShortcut *dShortcut;
73
74 struct process
75 {
76 QString path;
77 QString backgroundPath;
78 QHash<QString, QString> trackingParameters;
79 };
80 QList<process> processList;
81
82 void loadSettings();
83 void saveSettings();
84 QSettings *settingsFile;
85 QString memoryDir;
86 bool isEditable;
87 int currentPathCount;
88
89 // Replay *replayPanel;
90
91 public slots:
92 void updateParameters();
93 void startTracking();
94 void openPathFolder();
95 void openPathBackground(int);
96 void addPath(const QString &, const QString &, const QString &);
97 void removePath();
98 void removePath(int index);
100 bool loadParameterFile(const QString &path);
101 void openParameterFile(int);
102
103 void errors(int code);
104 signals:
109 void newParameterList(const QHash<QString, QString> &parameterList);
110
114 void next();
115 void log(QHash<QString, QString> log);
116 void status(QString messsage);
117};
118
119#endif // BATCH_H
QHash< QString, QString > parameterList
Definition batch.h:64
QShortcut * aShortcut
Definition batch.h:71
QString memoryDir
Definition batch.h:85
void openPathBackground(int)
Opens a dialog window to select a background image. Triggered when an open background is clicked in t...
Definition batch.cpp:323
void startTracking()
Starts a new tracking analysis. First, it gets the path to the folder containing the image sequence....
Definition batch.cpp:399
QThread * thread
Definition batch.h:66
Batch(QWidget *parent=nullptr)
Constructs the Batch widget.
Definition batch.cpp:44
QShortcut * dShortcut
Definition batch.h:72
void next()
Emitted when a tracking analysis is finished.
void updateParameterTable()
Takes the QHash parameterList and updates the parameters panel table..
Definition batch.cpp:569
QShortcut * wShortcut
Definition batch.h:69
Ui::Batch * ui
Definition batch.h:63
void saveSettings()
Saves all the parameters in the settings file.
Definition batch.cpp:521
void newParameterList(const QHash< QString, QString > &parameterList)
Emitted when a parameter is changed.
void loadSettings()
Loads the settings file at the startup of the program and updates the ui->parameterTable with the new...
Definition batch.cpp:507
QShortcut * qShortcut
Definition batch.h:70
bool loadParameterFile(const QString &path)
Reads a parameter file, updates parameters.
Definition batch.cpp:545
Tracking * tracking
Definition batch.h:67
void removePath()
Deletes the selected line in the ui->tablePath and the corresponding path in the pathList....
Definition batch.cpp:377
void openPathFolder()
Opens a dialog window to select folders. Triggered when the openPath button is clicked....
Definition batch.cpp:265
void addPath(const QString &, const QString &, const QString &)
Adds movie to the list of movies to analyze.
Definition batch.cpp:338
QSettings * settingsFile
Definition batch.h:84
void errors(int code)
Displays an error message.
Definition batch.cpp:589
void updateParameters()
Updates the parameterList vector with the new parameter when users changes a parameter in the QTableW...
Definition batch.cpp:482
void openParameterFile(int)
Opens a dialog to select a parameter file.
Definition batch.cpp:532
This class is intended to execute a tracking analysis on an image sequence. It is initialized with th...
Definition tracking.h:63
Definition batch.h:75