FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
Loading...
Searching...
No Matches
Interactive Class Reference

The Interactive widget provides an environment to use the tracking widget in an interactive environment. More...

Inheritance diagram for Interactive:

Signals

void message (QString message)
 
void log (QHash< QString, QString > log)
 
void status (QString messsage)
 
void modeChanged (bool isSimple)
 

Public Member Functions

 Interactive (QWidget *parent=nullptr)
 Constructs the interactive object derived from a QMainWindow object.
 
 Interactive (const Interactive &T)=delete
 
Interactiveoperator= (const Interactive &T)=delete
 
Interactiveoperator= (Interactive &&T)=delete
 
 Interactive (Interactive &&T)=delete
 
 ~Interactive ()
 Destructors.
 

Protected Member Functions

void dropEvent (QDropEvent *dropEvent) override
 Gets drop events that have url and try to open the file.
 
void dragEnterEvent (QDragEnterEvent *event) override
 Accepts all the drag enter event.
 

Private Slots

void openFolder (QString path=QString())
 Asks the path to a folder where an image sequence is stored. Setups the ui and resets the class attributs for a new analysis. Triggered when the open button from the menu bar is clicked.
 
void display (int index, int scale=0)
 Displays the image at index in the image sequence in the ui.
 
void display (const QImage &image)
 This is an overloaded function to display a QImage in the display.
 
void display (const cv::UMat &image, QImage::Format format=QImage::Format_RGB888)
 
void getParameters ()
 Gets all the tracking parameters from the ui and updates the parameter map that will be passed to the tracking object.
 
void previewTracking ()
 Does a tracking analysis on a sub-part of the image sequence defined by the user. Triggered when previewButton is clicked.
 
void track ()
 Does a tracking analysis. Triggered when the trackButton is clicked.
 
void computeBackground ()
 Computes and displays the background image in the display. Triggered when the backgroundComputeButton is clicked.
 
void selectBackground ()
 Opens a dialogue to select a background image. Triggered when ui->backgroundSelectButton is pressed.
 
bool eventFilter (QObject *target, QEvent *event) override
 Manages all the mouse inputs in the display.
 
void crop ()
 Crops the image from a rectangle drawed by the user with the mouse on the display. Triggered when the QPushButton ui->crop is clicked.
 
void reset ()
 Resets the region of interest. Triggered by the reset button.
 
void saveSettings ()
 Saves the settings.
 
void loadParameters (const QString &path)
 Reads a parameter file, updates parameters.
 
void level ()
 Level the parameters.
 

Private Attributes

Ui::Interactive * ui
 
QLabel * counterLabel
 
QAction * replayAction
 
QString memoryDir
 
QSize originalImageSize
 
QSize cropedImageSize
 
QHash< QString, QString > parameters
 
QString path
 
QString backgroundPath
 
QString dir
 
Trackingtracking
 
UMat background
 
bool isBackground
 
QPair< QPointF, QPointF > clicks
 
Rect roi
 
QPixmap resizedPix
 
vector< Point3i > colorMap
 
VideoReadervideo
 
Replayreplay
 
bool videoStatus
 
QString style
 
QString color
 
bool isExpert
 
QSettings * settingsFile
 

Detailed Description

The Interactive widget provides an environment to use the tracking widget in an interactive environment.

Author
Benjamin Gallois
Version
Revision
480

Contact: benja.nosp@m.min..nosp@m.gallo.nosp@m.is@f.nosp@m.asttr.nosp@m.ack..nosp@m.sh

Member Function Documentation

◆ display

void Interactive::display ( int index,
int scale = 0 )
privateslot

Displays the image at index in the image sequence in the ui.

Parameters
[in]indexIndex of the image to display in the image sequence.
[in]scaleOptional scale to display.

◆ eventFilter

bool Interactive::eventFilter ( QObject * target,
QEvent * event )
overrideprivateslot

Manages all the mouse inputs in the display.

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

Member Data Documentation

◆ background

UMat Interactive::background
private

Background image.

◆ backgroundPath

QString Interactive::backgroundPath
private

Path to the background image.

◆ cropedImageSize

QSize Interactive::cropedImageSize
private

Size of the croped image.

◆ dir

QString Interactive::dir
private

Path to the folder where the image sequence to display is stored.

◆ isBackground

bool Interactive::isBackground
private

Is the background computed.

◆ isExpert

bool Interactive::isExpert
private

Is FastTrack is in expert mode with advanced capabilities.

◆ memoryDir

QString Interactive::memoryDir
private

Saves the path to the last opened folder in dialog.

◆ originalImageSize

QSize Interactive::originalImageSize
private

Size of the original image.

◆ parameters

QHash<QString, QString> Interactive::parameters
private

Tracking parameters.

◆ tracking

Tracking* Interactive::tracking
private

Tracking object.


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