FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
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 <QImage>
15#include <QKeySequence>
16#include <QLCDNumber>
17#include <QLabel>
18#include <QLayout>
19#include <QLineEdit>
20#include <QListView>
21#include <QMainWindow>
22#include <QMap>
23#include <QMessageBox>
24#include <QProgressBar>
25#include <QPushButton>
26#include <QSettings>
27#include <QShortcut>
28#include <QSlider>
29#include <QSpinBox>
30#include <QString>
31#include <QTableWidgetItem>
32#include <QThread>
33#include <QTimer>
34#include <QTreeView>
35#include <QWidget>
36#include <ctime>
37#include <fstream>
38#include <opencv2/core/ocl.hpp>
39#include <string>
40#include <vector>
41#include "opencv2/highgui/highgui.hpp"
42#include "opencv2/imgproc/imgproc.hpp"
43#include "tracking.h"
44
45namespace Ui {
46class Batch;
47}
48
49class Batch : public QWidget {
50 Q_OBJECT
51
52 public:
53 explicit Batch(QWidget *parent = nullptr);
54 ~Batch();
55
56 private:
57 Ui::Batch *ui;
58 QMap<QString, QString> parameterList;
60 QThread *thread;
63 QShortcut *wShortcut;
64 QShortcut *qShortcut;
65 QShortcut *aShortcut;
66 QShortcut *dShortcut;
68 struct process
69 {
70 QString path;
71 QString backgroundPath;
72 QMap<QString, QString> trackingParameters;
73 };
74 QList<process> processList;
75
76 void loadSettings();
77 void saveSettings();
78 QSettings *settingsFile;
79 QString memoryDir;
80 bool isEditable;
81 int currentPathCount;
82
83 // Replay *replayPanel;
84
85 public slots:
86 void updateParameters();
87 void startTracking();
88 void openPathFolder();
89 void openPathBackground(int);
90 void addPath(QString, QString, QString);
91 void removePath();
92 void removePath(int index);
94 bool loadParameterFile(QString path);
95 void openParameterFile(int);
96
97 void errors(int code);
98 signals:
103 void newParameterList(const QMap<QString, QString> &parameterList);
104
108 void next();
109 void log(QMap<QString, QString> log);
110 void status(QString messsage);
111};
112
113#endif // BATCH_H
The Batch widget provides an convenient way to add multiple files to analyze.
Definition: batch.h:49
QShortcut * aShortcut
Definition: batch.h:65
QString memoryDir
Definition: batch.h:79
void openPathBackground(int)
Opens a dialog window to select a background image. Triggered when an open background is clicked in t...
Definition: batch.cpp:324
bool loadParameterFile(QString path)
Reads a parameter file, updates parameters.
Definition: batch.cpp:546
void startTracking()
Starts a new tracking analysis. First, it gets the path to the folder containing the image sequence....
Definition: batch.cpp:400
QThread * thread
Definition: batch.h:60
Batch(QWidget *parent=nullptr)
Constructs the Batch widget.
Definition: batch.cpp:44
QShortcut * dShortcut
Definition: batch.h:66
void next()
Emitted when a tracking analysis is finished.
void updateParameterTable()
Takes the QMap parameterList and updates the parameters panel table..
Definition: batch.cpp:570
QShortcut * wShortcut
Definition: batch.h:63
Ui::Batch * ui
Definition: batch.h:57
void saveSettings()
Saves all the parameters in the settings file.
Definition: batch.cpp:522
QMap< QString, QString > parameterList
Definition: batch.h:58
void loadSettings()
Loads the settings file at the startup of the program and updates the ui->parameterTable with the new...
Definition: batch.cpp:508
QShortcut * qShortcut
Definition: batch.h:64
Tracking * tracking
Definition: batch.h:61
void removePath()
Deletes the selected line in the ui->tablePath and the corresponding path in the pathList....
Definition: batch.cpp:378
void openPathFolder()
Opens a dialog window to select folders. Triggered when the openPath button is clicked....
Definition: batch.cpp:265
void newParameterList(const QMap< QString, QString > &parameterList)
Emitted when a parameter is changed.
QSettings * settingsFile
Definition: batch.h:78
void addPath(QString, QString, QString)
Adds movie to the list of movies to analyze.
Definition: batch.cpp:339
void errors(int code)
Displays an error message.
Definition: batch.cpp:590
void updateParameters()
Updates the parameterList vector with the new parameter when users changes a parameter in the QTableW...
Definition: batch.cpp:483
void openParameterFile(int)
Opens a dialog to select a parameter file.
Definition: batch.cpp:533
This class is intended to execute a tracking analysis on an image sequence. It is initialized with th...
Definition: tracking.h:60
Definition: batch.h:69