29#include <QDirIterator>
43#include <QProgressBar>
51#include <QTableWidgetItem>
57#include <opencv2/core/ocl.hpp>
60#include "annotation.h"
62#include "opencv2/highgui/highgui.hpp"
63#include "opencv2/imgproc/imgproc.hpp"
65#include "videoreader.h"
77 explicit Replay(QWidget *parent =
nullptr,
bool standalone =
true,
Timeline *slider =
nullptr,
VideoReader *videoReader =
nullptr);
87 QUndoStack *commandStack;
91 QComboBox *object1Replay;
92 QComboBox *object2Replay;
93 QSpinBox *deletedFrameNumber;
109 QPointF panReferenceClick;
110 QPointF zoomReferencePosition;
129 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
bool eventFilter(QObject *target, QEvent *event)
Manages all the mouse input in the display.
Definition: replay.cpp:615
void loadTrackingDir(const QString &dir)
Loads a tracking analysis folder from a video file.
Definition: replay.cpp:456
void loadFrame(int frameIndex)
Displays the image and the tracking data in the ui->displayReplay. Triggered when the ui->replaySlide...
Definition: replay.cpp:491
QSize originalImageSize
Definition: replay.h:106
bool isReplayable
Definition: replay.h:101
vector< Point3i > colorMap
Definition: replay.h:97
QString memoryDir
Definition: replay.h:95
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:730
bool object
Definition: replay.h:104
QList< int > occlusionEvents
Definition: replay.h:98
QShortcut * deletedFrameFocus
Definition: replay.h:84
QSize resizedFrame
Definition: replay.h:105
void updateInformation(int objectId, int imageIndex, QTableWidget *table)
Update the information of an object inside a table widget.
Definition: replay.cpp:718
void saveTrackedMovie()
Saves the tracked movie in .avi. Triggered when ui->previousReplay is pressed.
Definition: replay.cpp:767
void openReplay()
Opens a dialogue to select a folder.
Definition: replay.cpp:359
void zoomIn()
Zooms in the display.
Definition: replay.cpp:588
void clear()
Clears replay data.
Definition: replay.cpp:379
void zoomOut()
Zooms out the display.
Definition: replay.cpp:600
void nextOcclusionEvent()
Finds and displays the next occlusion event on the ui->replayDisplay. Triggered when ui->nextReplay i...
Definition: replay.cpp:745
void loadReplay(const QString &dir)
Loads a video/images sequence and the last analysis performed.
Definition: replay.cpp:400
void previousOcclusionEvent()
Finds and displays the previous occlusion event on the ui->replayDisplay. Triggered when ui->previous...
Definition: replay.cpp:756
int currentIndex
Definition: replay.h:107
int autoPlayerIndex
Definition: replay.h:103
int maxIndex
Definition: replay.h:100
int replayNumberObject
Definition: replay.h:99
void openTrackingDir()
Opens a dialogue to select a Tracking_Result dir, necessitate a video already opened and matching tra...
Definition: replay.cpp:369
int replayFps
Definition: replay.h:102
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:34