FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
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 (QMap< 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 ()
 Destructors.
 

Private Slots

void openFolder ()
 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. More...
 
void display (const QImage &image)
 This is an overloaded function to display a QImage in the display.
 
void display (const UMat &image)
 This is an overloaded function to display a UMat in the display.
 
void zoomIn ()
 Zooms in the display.
 
void zoomOut ()
 Zooms out the display.
 
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 tracing 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)
 Manages all the mouse inputs in the display. More...
 
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 (QString path)
 Reads a parameter file, updates parameters.
 
void level ()
 Level the parameters.
 

Private Attributes

Ui::Interactive * ui
 
int currentLayout
 
QLabel * counterLabel
 
QAction * replayAction
 
QString memoryDir
 
QSize resizedFrame
 
QSize originalImageSize
 
QSize cropedImageSize
 
QMap< QString, QString > parameters
 
QString path
 
QString backgroundPath
 
QString dir
 
Trackingtracking
 
UMat background
 
bool isBackground
 
QPair< QPoint, QPoint > clicks
 
QPointF panReferenceClick
 
QPointF zoomReferencePosition
 
Rect roi
 
QPixmap resizedPix
 
vector< Point3i > colorMap
 
double currentZoom
 
Replayreplay
 
VideoReadervideo
 
bool videoStatus
 
QString style
 
QString color
 
int layout
 
bool isExpert
 

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 
)
privateslot

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

QMap<QString, QString> Interactive::parameters
private

Tracking parameters.

◆ resizedFrame

QSize Interactive::resizedFrame
private

Size of the resized image in the display QWidget.

◆ tracking

Tracking* Interactive::tracking
private

Tracking object.


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