FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
Public Slots | Signals | Public Member Functions | Public Attributes | Private Attributes | List of all members
Replay Class Reference
Inheritance diagram for Replay:

Public Slots

void openReplay ()
 Opens a dialogue to select a folder.
 
void openTrackingDir ()
 Opens a dialogue to select a Tracking_Result dir, necessitate a video already opened and matching tracking results.
 
void loadReplay (const QString &dir)
 Loads a video/images sequence and the last analysis performed. More...
 
void loadTrackingDir (const QString &dir)
 Loads a tracking analysis folder from a video file. More...
 
void loadFrame (int frameIndex)
 Displays the image and the tracking data in the ui->displayReplay. Triggered when the ui->replaySlider value is changed.
 
void zoomIn ()
 Zooms in the display.
 
void zoomOut ()
 Zooms out the display.
 
bool eventFilter (QObject *target, QEvent *event)
 Manages all the mouse input in the display. More...
 
void updateInformation (int objectId, int imageIndex, QTableWidget *table)
 Update the information of an object inside a table widget. More...
 
void correctTracking ()
 Gets the index of the two selected objects, the start index, swaps the data from the start index to the end, and saves the new tracking data. Triggered when ui->swapButton is pressed or a right-click event is registered inside the replayDisplay.
 
void nextOcclusionEvent ()
 Finds and displays the next occlusion event on the ui->replayDisplay. Triggered when ui->nextReplay is pressed.
 
void previousOcclusionEvent ()
 Finds and displays the previous occlusion event on the ui->replayDisplay. Triggered when ui->previousReplay is pressed.
 
void saveTrackedMovie ()
 Saves the tracked movie in .avi. Triggered when ui->previousReplay is pressed.
 
void sliderConnection (const int index)
 
void clear ()
 Clears replay data.
 

Signals

void opened (bool)
 

Public Member Functions

 Replay (QWidget *parent=nullptr, bool standalone=true, Timeline *slider=nullptr, VideoReader *videoReader=nullptr)
 

Public Attributes

DatatrackingData
 
Annotationannotation
 

Private Attributes

Ui::Replay * ui
 
QShortcut * deletedFrameFocus
 
bool isStandalone
 
QUndoStack * commandStack
 
QAction * undoAction
 
QAction * redoAction
 
QComboBox * object1Replay
 
QComboBox * object2Replay
 
QSpinBox * deletedFrameNumber
 
QString memoryDir
 
vector< Point3i > colorMap
 
QList< int > occlusionEvents
 
int replayNumberObject
 
int maxIndex
 
bool isReplayable
 
int replayFps
 
int autoPlayerIndex
 
bool object
 
QSize resizedFrame
 
QSize originalImageSize
 
int currentIndex
 
double currentZoom
 
QPointF panReferenceClick
 
QPointF zoomReferencePosition
 
QList< int > ids
 
VideoReadervideo
 

Detailed Description

Author
Benjamin Gallois
Version
Revision
4.1

Contact: gallo.nosp@m.is.b.nosp@m.enjam.nosp@m.in08.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Member Function Documentation

◆ eventFilter

bool Replay::eventFilter ( QObject *  target,
QEvent *  event 
)
slot

Manages all the mouse input in the display.

Parameters
[in]targetTarget widget to apply the filter.
[in]eventDescribes the mouse event.

◆ loadReplay

void Replay::loadReplay ( const QString &  dir)
slot

Loads a video/images sequence and the last analysis performed.

  • [in] dir Path to a video or image of an images sequence.

◆ loadTrackingDir

void Replay::loadTrackingDir ( const QString &  dir)
slot

Loads a tracking analysis folder from a video file.

  • [in] dir Path to a video or image of an images sequence.

◆ updateInformation

void Replay::updateInformation ( int  objectId,
int  imageIndex,
QTableWidget *  table 
)
slot

Update the information of an object inside a table widget.

Parameters
[in]objectIdThe id of the object to display the data.
[in]imageIndexThe index of the image where to extracts the data.
[in]tablePointer to a QTableWidget where to display the data.

Member Data Documentation

◆ autoPlayerIndex

int Replay::autoPlayerIndex
private

Index of the image displayed in autoplay mode in the replay.

◆ colorMap

vector<Point3i> Replay::colorMap
private

RGB color map to display each object in one color.

◆ currentIndex

int Replay::currentIndex
private

Current image index.

◆ deletedFrameFocus

QShortcut* Replay::deletedFrameFocus
private

Keyboard shortcut to next frame.

◆ isReplayable

bool Replay::isReplayable
private

True if user input is an images sequences that can be played.

◆ maxIndex

int Replay::maxIndex
private

Number of images.

◆ memoryDir

QString Replay::memoryDir
private

Saves the path of the last opened folder.

◆ object

bool Replay::object
private

Alternatively true or false to associate either object A or object B at each click of the user in the ui->replayDisplay.

◆ occlusionEvents

QList<int> Replay::occlusionEvents
private

Index of each occlusion event in the replayed images sequence.

◆ originalImageSize

QSize Replay::originalImageSize
private

Width and height of the original image in the images sequence.

◆ replayFps

int Replay::replayFps
private

Frame rate value at which a new image is displayed in autoplay mode in the replay.

◆ replayNumberObject

int Replay::replayNumberObject
private

Number of objects tracked in the replayed images sequence.

◆ resizedFrame

QSize Replay::resizedFrame
private

Width and height of displayed QPixmap to accomodate window size changment.


The documentation for this class was generated from the following files: