25#include <QActionGroup>
27#include <QDesktopServices>
29#include <QDirIterator>
30#include <QElapsedTimer>
35#include <QFutureWatcher>
41#include <QNetworkAccessManager>
42#include <QNetworkReply>
43#include <QNetworkRequest>
45#include <QResizeEvent>
49#include <QSharedPointer>
50#include <QStandardPaths>
52#include <QStyleFactory>
53#include <QTableWidget>
54#include <QTableWidgetItem>
58#include <QtConcurrent/QtConcurrentRun>
61#include "opencv2/highgui/highgui.hpp"
62#include "opencv2/imgproc/imgproc.hpp"
65#include "videoreader.h"
88 void display(
int index,
int scale = 0);
89 void display(
const QImage &image);
90 void display(
const cv::UMat &image, QImage::Format format = QImage::Format_RGB888);
100 bool eventFilter(QObject *target, QEvent *event)
override;
110 QLabel *counterLabel;
111 QAction *replayAction;
122 QPair<QPointF, QPointF> clicks;
125 vector<Point3i> colorMap;
133 QSettings *settingsFile;
140 void message(QString message);
141 void log(QHash<QString, QString> log);
142 void status(QString messsage);
143 void modeChanged(
bool isSimple);
void openFolder(QString path=QString())
Asks the path to a folder where an image sequence is stored. Setups the ui and resets the class attri...
Definition interactive.cpp:466
void reset()
Resets the region of interest. Triggered by the reset button.
Definition interactive.cpp:1031
void previewTracking()
Does a tracking analysis on a sub-part of the image sequence defined by the user. Triggered when prev...
Definition interactive.cpp:824
QSize cropedImageSize
Definition interactive.h:114
bool eventFilter(QObject *target, QEvent *event) override
Manages all the mouse inputs in the display.
Definition interactive.cpp:937
~Interactive()
Destructors.
Definition interactive.cpp:1057
void selectBackground()
Opens a dialogue to select a background image. Triggered when ui->backgroundSelectButton is pressed.
Definition interactive.cpp:757
void saveSettings()
Saves the settings.
Definition interactive.cpp:1067
Tracking * tracking
Definition interactive.h:119
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:681
QString backgroundPath
Definition interactive.h:117
UMat background
Definition interactive.h:120
QSize originalImageSize
Definition interactive.h:113
void level()
Level the parameters.
Definition interactive.cpp:1077
QHash< QString, QString > parameters
Definition interactive.h:115
void track()
Does a tracking analysis. Triggered when the trackButton is clicked.
Definition interactive.cpp:874
void loadParameters(const QString &path)
Reads a parameter file, updates parameters.
Definition interactive.cpp:1120
void dragEnterEvent(QDragEnterEvent *event) override
Accepts all the drag enter event.
Definition interactive.cpp:1174
bool isBackground
Definition interactive.h:121
void crop()
Crops the image from a rectangle drawed by the user with the mouse on the display....
Definition interactive.cpp:993
void display(int index, int scale=0)
Displays the image at index in the image sequence in the ui.
Definition interactive.cpp:576
QString dir
Definition interactive.h:118
void dropEvent(QDropEvent *dropEvent) override
Gets drop events that have url and try to open the file.
Definition interactive.cpp:1163
QString memoryDir
Definition interactive.h:112
bool isExpert
Definition interactive.h:132
void getParameters()
Gets all the tracking parameters from the ui and updates the parameter map that will be passed to the...
Definition interactive.cpp:795
This class is intended to execute a tracking analysis on an image sequence. It is initialized with th...
Definition tracking.h:63
This class is intended to abstract the opening of a video, it can load image sequence and video with ...
Definition videoreader.h:36