26#include <QDesktopServices>
28#include <QDirIterator>
29#include <QElapsedTimer>
38#include <QNetworkAccessManager>
39#include <QNetworkReply>
40#include <QNetworkRequest>
42#include <QResizeEvent>
47#include <QStyleFactory>
48#include <QTableWidget>
49#include <QTableWidgetItem>
53#include <QtConcurrent/QtConcurrentRun>
56#include "opencv2/highgui/highgui.hpp"
57#include "opencv2/imgproc/imgproc.hpp"
60#include "videoreader.h"
79 void display(
int index,
int scale = 0);
80 void display(
const QImage &image);
81 void display(
const UMat &image);
105 QLabel *counterLabel;
106 QAction *replayAction;
118 QPair<QPoint, QPoint> clicks;
119 QPointF panReferenceClick;
120 QPointF zoomReferencePosition;
123 vector<Point3i> colorMap;
135 void message(QString message);
136 void log(QMap<QString, QString> log);
137 void status(QString messsage);
138 void modeChanged(
bool isSimple);
The Interactive widget provides an environment to use the tracking widget in an interactive environme...
Definition: interactive.h:69
QMap< QString, QString > parameters
Definition: interactive.h:111
void loadParameters(QString path)
Reads a parameter file, updates parameters.
Definition: interactive.cpp:1187
void reset()
Resets the region of interest. Triggered by the reset button.
Definition: interactive.cpp:1107
void zoomOut()
Zooms out the display.
Definition: interactive.cpp:708
void previewTracking()
Does a tracing analysis on a sub-part of the image sequence defined by the user. Triggered when previ...
Definition: interactive.cpp:854
QSize cropedImageSize
Definition: interactive.h:110
~Interactive()
Destructors.
Definition: interactive.cpp:1131
void selectBackground()
Opens a dialogue to select a background image. Triggered when ui->backgroundSelectButton is pressed.
Definition: interactive.cpp:790
void saveSettings()
Saves the settings.
Definition: interactive.cpp:1141
Tracking * tracking
Definition: interactive.h:115
void zoomIn()
Zooms in the display.
Definition: interactive.cpp:693
Interactive(QWidget *parent=nullptr)
Constructs the interactive object derived from a QMainWindow object.
Definition: interactive.cpp:41
void computeBackground()
Computes and displays the background image in the display. Triggered when the backgroundComputeButton...
Definition: interactive.cpp:746
QString backgroundPath
Definition: interactive.h:113
UMat background
Definition: interactive.h:116
QSize originalImageSize
Definition: interactive.h:109
void level()
Level the parameters.
Definition: interactive.cpp:1152
void track()
Does a tracking analysis. Triggered when the trackButton is clicked.
Definition: interactive.cpp:903
QSize resizedFrame
Definition: interactive.h:108
bool isBackground
Definition: interactive.h:117
void crop()
Crops the image from a rectangle drawed by the user with the mouse on the display....
Definition: interactive.cpp:1072
void display(int index, int scale=0)
Displays the image at index in the image sequence in the ui.
Definition: interactive.cpp:614
QString dir
Definition: interactive.h:114
QString memoryDir
Definition: interactive.h:107
bool isExpert
Definition: interactive.h:132
void openFolder()
Asks the path to a folder where an image sequence is stored. Setups the ui and resets the class attri...
Definition: interactive.cpp:515
void getParameters()
Gets all the tracking parameters from the ui and updates the parameter map that will be passed to the...
Definition: interactive.cpp:825
bool eventFilter(QObject *target, QEvent *event)
Manages all the mouse inputs in the display.
Definition: interactive.cpp:965
This class is intended to execute a tracking analysis on an image sequence. It is initialized with th...
Definition: tracking.h:60
This class is intended to abstract the opening of a video, it can load image sequence and video with ...
Definition: videoreader.h:34