29#include <QDirIterator>
42#include <QProgressBar>
50#include <QTableWidgetItem>
56#include <opencv2/core/ocl.hpp>
59#include "annotation.h"
61#include "opencv2/highgui/highgui.hpp"
62#include "opencv2/imgproc/imgproc.hpp"
64#include "videoreader.h"
72class Replay :
public QMainWindow {
76 explicit Replay(QWidget *parent =
nullptr,
bool standalone =
true,
Timeline *slider =
nullptr,
VideoReader *videoReader =
nullptr);
77 Replay(
const Replay &T) =
delete;
78 Replay &operator=(
const Replay &T) =
delete;
79 Replay &operator=(Replay &&T) =
delete;
80 Replay(Replay &&T) =
delete;
89 QSettings *settingsFile;
91 QUndoStack *commandStack;
95 QComboBox *object1Replay;
96 QComboBox *object2Replay;
97 QSpinBox *deletedFrameNumber;
122 bool eventFilter(QObject *target, QEvent *event)
override;
128 void sliderConnection(
const int index);
This class allows to load tracking annotation file.
Definition annotation.h:15
This class allows to load tracking data produced by the Tracking class.
Definition data.h:24
void loadTrackingDir(const QString &dir)
Loads a tracking analysis folder from a video file.
Definition replay.cpp:434
bool eventFilter(QObject *target, QEvent *event) override
Manages all the mouse input in the display.
Definition replay.cpp:566
void loadFrame(int frameIndex)
Displays the image and the tracking data in the ui->displayReplay. Triggered when the ui->replaySlide...
Definition replay.cpp:469
QSize originalImageSize
Definition replay.h:110
bool isReplayable
Definition replay.h:105
vector< Point3i > colorMap
Definition replay.h:101
QString memoryDir
Definition replay.h:99
void correctTracking()
Gets the index of the two selected objects, the start index, swaps the data from the start index to t...
Definition replay.cpp:633
bool object
Definition replay.h:108
QList< int > occlusionEvents
Definition replay.h:102
QShortcut * deletedFrameFocus
Definition replay.h:87
QSize resizedFrame
Definition replay.h:109
void updateInformation(int objectId, int imageIndex, QTableWidget *table)
Update the information of an object inside a table widget.
Definition replay.cpp:621
void saveTrackedMovie()
Saves the tracked movie in .avi. Triggered when ui->previousReplay is pressed.
Definition replay.cpp:670
void openReplay()
Opens a dialogue to select a folder.
Definition replay.cpp:334
void clear()
Clears replay data.
Definition replay.cpp:354
void nextOcclusionEvent()
Finds and displays the next occlusion event on the ui->replayDisplay. Triggered when ui->nextReplay i...
Definition replay.cpp:648
void loadReplay(const QString &dir)
Loads a video/images sequence and the last analysis performed.
Definition replay.cpp:374
void previousOcclusionEvent()
Finds and displays the previous occlusion event on the ui->replayDisplay. Triggered when ui->previous...
Definition replay.cpp:659
int currentIndex
Definition replay.h:111
int autoPlayerIndex
Definition replay.h:107
int maxIndex
Definition replay.h:104
int replayNumberObject
Definition replay.h:103
void openTrackingDir()
Opens a dialogue to select a Tracking_Result dir, necessitate a video already opened and matching tra...
Definition replay.cpp:344
int replayFps
Definition replay.h:106
Draw a time line with cursor, hover and marker set.
Definition timeline.h:26
This class is intended to abstract the opening of a video, it can load image sequence and video with ...
Definition videoreader.h:36