FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
Classes | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Batch Class Reference

The Batch widget provides an convenient way to add multiple files to analyze. More...

Inheritance diagram for Batch:

Classes

struct  process
 

Public Slots

void updateParameters ()
 Updates the parameterList vector with the new parameter when users changes a parameter in the QTableWidget of parameters. Triggered when ui->tableParameters is modified. Emits the updated parameters QMap. More...
 
void startTracking ()
 Starts a new tracking analysis. First, it gets the path to the folder containing the image sequence. It creates a folder named Tracking_Result in this folder and a file parameters.txt containing the parameterList. It creates a new Tracking object that has to be run in a separate thread. When the analysis is finished, the Tracking object is destroyed and a new analysis is started. Triggerred when the start analysis button is clicked or when the signal finishedAnalysis() is emitted.
 
void openPathFolder ()
 Opens a dialog window to select folders. Triggered when the openPath button is clicked. If auto-detection mode is enable, it will also selects a background image and/or a parameter file and update the list of file to process. It also possible to add a suffix to the selected path.
 
void openPathBackground (int)
 Opens a dialog window to select a background image. Triggered when an open background is clicked in the pathTable. More...
 
void addPath (QString, QString, QString)
 Adds movie to the list of movies to analyze. More...
 
void removePath ()
 Deletes the selected line in the ui->tablePath and the corresponding path in the pathList. Triggered when the ui->removePath button is clicked.
 
void removePath (int index)
 Deletes the row at index in the pathPanel. More...
 
void updateParameterTable ()
 Takes the QMap parameterList and updates the parameters panel table..
 
bool loadParameterFile (QString path)
 Reads a parameter file, updates parameters.
 
void openParameterFile (int)
 Opens a dialog to select a parameter file. More...
 
void errors (int code)
 Displays an error message.

 

Signals

void newParameterList (const QMap< QString, QString > &parameterList)
 Emitted when a parameter is changed. More...
 
void next ()
 Emitted when a tracking analysis is finished.
 
void log (QMap< QString, QString > log)
 
void status (QString messsage)
 

Public Member Functions

 Batch (QWidget *parent=nullptr)
 Constructs the Batch widget.
 

Private Member Functions

void loadSettings ()
 Loads the settings file at the startup of the program and updates the ui->parameterTable with the new parameters.
 
void saveSettings ()
 Saves all the parameters in the settings file.
 

Private Attributes

Ui::Batch * ui
 
QMap< QString, QString > parameterList
 
QThread * thread
 
Trackingtracking
 
QShortcut * wShortcut
 
QShortcut * qShortcut
 
QShortcut * aShortcut
 
QShortcut * dShortcut
 
QList< processprocessList
 
QSettings * settingsFile
 
QString memoryDir
 
bool isEditable
 
int currentPathCount
 

Detailed Description

The Batch widget provides an convenient way to add multiple files to analyze.

Author
Benjamin Gallois
Version
Revision
460

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

◆ addPath

void Batch::addPath ( QString  pathMovie,
QString  pathBackground,
QString  pathParameter 
)
slot

Adds movie to the list of movies to analyze.

  • [in] pathMovie Path to the image sequence to analyze.
  • [in] pathBackground Path to the background image.
  • [in] pathParameter Path to the parameter file.

◆ newParameterList

void Batch::newParameterList ( const QMap< QString, QString > &  parameterList)
signal

Emitted when a parameter is changed.

Parameters
parameterListAll parameters necessary to the tracking analysis.

◆ openParameterFile

void Batch::openParameterFile ( int  row)
slot

Opens a dialog to select a parameter file.

  • [in] row Index of the row containing the button in the pathPanel.

◆ openPathBackground

void Batch::openPathBackground ( int  row)
slot

Opens a dialog window to select a background image. Triggered when an open background is clicked in the pathTable.

  • [in] row Index of the row containing the button in the pathPanel.

◆ removePath

void Batch::removePath ( int  row)
slot

Deletes the row at index in the pathPanel.

  • [in] row Index of the row.

◆ updateParameters

void Batch::updateParameters ( )
slot

Updates the parameterList vector with the new parameter when users changes a parameter in the QTableWidget of parameters. Triggered when ui->tableParameters is modified. Emits the updated parameters QMap.

Parameters
[in]itemQTableWidgetItem from a QTableWidget.

Member Data Documentation

◆ aShortcut

QShortcut* Batch::aShortcut
private

Keyboard shortcut to previous frame.

◆ dShortcut

QShortcut* Batch::dShortcut
private

Keyboard shortcut to next frame.

◆ memoryDir

QString Batch::memoryDir
private

Saves the path of the last opened folder.

◆ parameterList

QMap<QString, QString> Batch::parameterList
private

All the parameters necessary for the tracking analysis.

◆ qShortcut

QShortcut* Batch::qShortcut
private

Keyboard shortcut to previous frame.

◆ settingsFile

QSettings* Batch::settingsFile
private

Saves parameters in a settings.ini file.

◆ thread

QThread* Batch::thread
private

Thread where lives the Tracking object.

◆ tracking

Tracking* Batch::tracking
private

Objects that track images sequence.

◆ ui

Ui::Batch* Batch::ui
private

ui file from Qt designer.

◆ wShortcut

QShortcut* Batch::wShortcut
private

Keyboard shortcut to next occlusion.


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