Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
find_object::MainWindow Class Reference

#include <MainWindow.h>

Inheritance diagram for find_object::MainWindow:
Inheritance graph
[legend]

Public Slots

void pauseProcessing ()
 
void startProcessing ()
 
void stopProcessing ()
 
void update (const cv::Mat &image)
 
void update (const cv::Mat &image, const find_object::Header &header, const cv::Mat &depth, float depthConstant)
 

Signals

void objectsFound (const find_object::DetectionInfo &, const find_object::Header &header, const cv::Mat &depth, float depthConstant)
 

Public Member Functions

 MainWindow (find_object::FindObject *findObject, find_object::Camera *camera=0, QWidget *parent=0)
 
void setSourceImageText (const QString &text)
 
virtual ~MainWindow ()
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 

Private Slots

void addObjectFromScene ()
 
void addObjectFromTcp (const cv::Mat &image, int id, const QString &filePath)
 
void addObjectsFromFiles (const QStringList &fileNames)
 
void addObjectsFromFiles ()
 
void hideObjectsFeatures ()
 
void loadObjects ()
 
void loadSceneFromFile (const QStringList &fileNames)
 
void loadSceneFromFile ()
 
void loadSession ()
 
void loadSettings ()
 
void loadVocabulary ()
 
void moveCameraFrame (int frame)
 
void notifyParametersChanged (const QStringList &param)
 
void rectHovered (int objId)
 
void removeAllObjects ()
 
void removeObject (find_object::ObjWidget *object)
 
void removeObject (int id)
 
bool saveObjects ()
 
void saveSession ()
 
void saveSettings ()
 
void saveVocabulary ()
 
void setupCameraFromImagesDirectory ()
 
void setupCameraFromTcpIp ()
 
void setupCameraFromVideoFile ()
 
void showHideControls ()
 
void showObjectsFeatures ()
 
void updateMirrorView ()
 
void updateObjects ()
 
void updateObjectsSize ()
 

Private Member Functions

int addObjectFromFile (const QString &filePath)
 
int loadObjects (const QString &dirPath, bool recursive=false)
 
bool loadSettings (const QString &path)
 
int saveObjects (const QString &dirPath)
 
bool saveSettings (const QString &path) const
 
void setupTCPServer ()
 
void showObject (find_object::ObjWidget *obj)
 
void updateObjects (const QList< int > &ids)
 
void updateObjectSize (find_object::ObjWidget *obj)
 
void updateVocabulary (const QList< int > &ids=QList< int >())
 

Private Attributes

AboutDialogaboutDialog_
 
Cameracamera_
 
FindObjectfindObject_
 
QMap< int, QByteArray > imagesMap_
 
rtabmap::PdfPlotCurveinliersCurve_
 
QMap< QString, QVariant > lastObjectsUpdateParameters_
 
rtabmap::PdfPlotCurvelikelihoodCurve_
 
int lowestRefreshRate_
 
bool objectsModified_
 
QMap< int, find_object::ObjWidget * > objWidgets_
 
QTime refreshStartTime_
 
cv::Mat sceneImage_
 
TcpServertcpServer_
 
Ui_mainWindow * ui_
 
QTime updateRate_
 

Detailed Description

Definition at line 65 of file MainWindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

find_object::MainWindow::MainWindow ( find_object::FindObject findObject,
find_object::Camera camera = 0,
QWidget *  parent = 0 
)

Definition at line 82 of file MainWindow.cpp.

◆ ~MainWindow()

find_object::MainWindow::~MainWindow ( )
virtual

Definition at line 287 of file MainWindow.cpp.

Member Function Documentation

◆ addObjectFromFile()

int find_object::MainWindow::addObjectFromFile ( const QString &  filePath)
private

Definition at line 861 of file MainWindow.cpp.

◆ addObjectFromScene

void find_object::MainWindow::addObjectFromScene ( )
privateslot

Definition at line 786 of file MainWindow.cpp.

◆ addObjectFromTcp

void find_object::MainWindow::addObjectFromTcp ( const cv::Mat &  image,
int  id,
const QString &  filePath 
)
privateslot

Definition at line 880 of file MainWindow.cpp.

◆ addObjectsFromFiles [1/2]

void find_object::MainWindow::addObjectsFromFiles ( const QStringList &  fileNames)
privateslot

Definition at line 835 of file MainWindow.cpp.

◆ addObjectsFromFiles [2/2]

void find_object::MainWindow::addObjectsFromFiles ( )
privateslot

Definition at line 856 of file MainWindow.cpp.

◆ closeEvent()

void find_object::MainWindow::closeEvent ( QCloseEvent *  event)
protectedvirtual

Definition at line 299 of file MainWindow.cpp.

◆ hideObjectsFeatures

void find_object::MainWindow::hideObjectsFeatures ( )
privateslot

Definition at line 778 of file MainWindow.cpp.

◆ keyPressEvent()

void find_object::MainWindow::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 330 of file MainWindow.cpp.

◆ loadObjects [1/2]

void find_object::MainWindow::loadObjects ( )
privateslot

Definition at line 573 of file MainWindow.cpp.

◆ loadObjects() [2/2]

int find_object::MainWindow::loadObjects ( const QString &  dirPath,
bool  recursive = false 
)
private

Definition at line 505 of file MainWindow.cpp.

◆ loadSceneFromFile [1/2]

void find_object::MainWindow::loadSceneFromFile ( const QStringList &  fileNames)
privateslot

Definition at line 904 of file MainWindow.cpp.

◆ loadSceneFromFile [2/2]

void find_object::MainWindow::loadSceneFromFile ( )
privateslot

Definition at line 918 of file MainWindow.cpp.

◆ loadSession

void find_object::MainWindow::loadSession ( )
privateslot

Definition at line 369 of file MainWindow.cpp.

◆ loadSettings [1/2]

void find_object::MainWindow::loadSettings ( )
privateslot

Definition at line 444 of file MainWindow.cpp.

◆ loadSettings() [2/2]

bool find_object::MainWindow::loadSettings ( const QString &  path)
private

Definition at line 469 of file MainWindow.cpp.

◆ loadVocabulary

void find_object::MainWindow::loadVocabulary ( )
privateslot

Definition at line 621 of file MainWindow.cpp.

◆ moveCameraFrame

void find_object::MainWindow::moveCameraFrame ( int  frame)
privateslot

Definition at line 1267 of file MainWindow.cpp.

◆ notifyParametersChanged

void find_object::MainWindow::notifyParametersChanged ( const QStringList &  param)
privateslot

Definition at line 1627 of file MainWindow.cpp.

◆ objectsFound

void find_object::MainWindow::objectsFound ( const find_object::DetectionInfo ,
const find_object::Header header,
const cv::Mat &  depth,
float  depthConstant 
)
signal

◆ pauseProcessing

void find_object::MainWindow::pauseProcessing ( )
slot

Definition at line 1248 of file MainWindow.cpp.

◆ rectHovered

void find_object::MainWindow::rectHovered ( int  objId)
privateslot

Definition at line 1279 of file MainWindow.cpp.

◆ removeAllObjects

void find_object::MainWindow::removeAllObjects ( )
privateslot

Definition at line 718 of file MainWindow.cpp.

◆ removeObject [1/2]

void find_object::MainWindow::removeObject ( find_object::ObjWidget object)
privateslot

Definition at line 683 of file MainWindow.cpp.

◆ removeObject [2/2]

void find_object::MainWindow::removeObject ( int  id)
privateslot

Definition at line 706 of file MainWindow.cpp.

◆ saveObjects [1/2]

bool find_object::MainWindow::saveObjects ( )
privateslot

Definition at line 602 of file MainWindow.cpp.

◆ saveObjects() [2/2]

int find_object::MainWindow::saveObjects ( const QString &  dirPath)
private

Definition at line 551 of file MainWindow.cpp.

◆ saveSession

void find_object::MainWindow::saveSession ( )
privateslot

Definition at line 427 of file MainWindow.cpp.

◆ saveSettings [1/2]

void find_object::MainWindow::saveSettings ( )
privateslot

Definition at line 456 of file MainWindow.cpp.

◆ saveSettings() [2/2]

bool find_object::MainWindow::saveSettings ( const QString &  path) const
private

Definition at line 493 of file MainWindow.cpp.

◆ saveVocabulary

void find_object::MainWindow::saveVocabulary ( )
privateslot

Definition at line 656 of file MainWindow.cpp.

◆ setSourceImageText()

void find_object::MainWindow::setSourceImageText ( const QString &  text)

Definition at line 364 of file MainWindow.cpp.

◆ setupCameraFromImagesDirectory

void find_object::MainWindow::setupCameraFromImagesDirectory ( )
privateslot

Definition at line 963 of file MainWindow.cpp.

◆ setupCameraFromTcpIp

void find_object::MainWindow::setupCameraFromTcpIp ( )
privateslot

Definition at line 994 of file MainWindow.cpp.

◆ setupCameraFromVideoFile

void find_object::MainWindow::setupCameraFromVideoFile ( )
privateslot

Definition at line 932 of file MainWindow.cpp.

◆ setupTCPServer()

void find_object::MainWindow::setupTCPServer ( )
private

Definition at line 346 of file MainWindow.cpp.

◆ showHideControls

void find_object::MainWindow::showHideControls ( )
privateslot

Definition at line 765 of file MainWindow.cpp.

◆ showObject()

void find_object::MainWindow::showObject ( find_object::ObjWidget obj)
private

Definition at line 1030 of file MainWindow.cpp.

◆ showObjectsFeatures

void find_object::MainWindow::showObjectsFeatures ( )
privateslot

Definition at line 770 of file MainWindow.cpp.

◆ startProcessing

void find_object::MainWindow::startProcessing ( )
slot

Definition at line 1159 of file MainWindow.cpp.

◆ stopProcessing

void find_object::MainWindow::stopProcessing ( )
slot

Definition at line 1223 of file MainWindow.cpp.

◆ update [1/2]

void find_object::MainWindow::update ( const cv::Mat &  image)
slot

Definition at line 1291 of file MainWindow.cpp.

◆ update [2/2]

void find_object::MainWindow::update ( const cv::Mat &  image,
const find_object::Header header,
const cv::Mat &  depth,
float  depthConstant 
)
slot

Definition at line 1296 of file MainWindow.cpp.

◆ updateMirrorView

void find_object::MainWindow::updateMirrorView ( )
privateslot

Definition at line 755 of file MainWindow.cpp.

◆ updateObjects [1/2]

void find_object::MainWindow::updateObjects ( )
privateslot

Definition at line 1080 of file MainWindow.cpp.

◆ updateObjects() [2/2]

void find_object::MainWindow::updateObjects ( const QList< int > &  ids)
private

Definition at line 1085 of file MainWindow.cpp.

◆ updateObjectSize()

void find_object::MainWindow::updateObjectSize ( find_object::ObjWidget obj)
private

Definition at line 738 of file MainWindow.cpp.

◆ updateObjectsSize

void find_object::MainWindow::updateObjectsSize ( )
privateslot

Definition at line 730 of file MainWindow.cpp.

◆ updateVocabulary()

void find_object::MainWindow::updateVocabulary ( const QList< int > &  ids = QList<int>())
private

Definition at line 1125 of file MainWindow.cpp.

Member Data Documentation

◆ aboutDialog_

AboutDialog* find_object::MainWindow::aboutDialog_
private

Definition at line 138 of file MainWindow.h.

◆ camera_

Camera* find_object::MainWindow::camera_
private

Definition at line 134 of file MainWindow.h.

◆ findObject_

FindObject* find_object::MainWindow::findObject_
private

Definition at line 135 of file MainWindow.h.

◆ imagesMap_

QMap<int, QByteArray> find_object::MainWindow::imagesMap_
private

Definition at line 144 of file MainWindow.h.

◆ inliersCurve_

rtabmap::PdfPlotCurve* find_object::MainWindow::inliersCurve_
private

Definition at line 137 of file MainWindow.h.

◆ lastObjectsUpdateParameters_

QMap<QString, QVariant> find_object::MainWindow::lastObjectsUpdateParameters_
private

Definition at line 145 of file MainWindow.h.

◆ likelihoodCurve_

rtabmap::PdfPlotCurve* find_object::MainWindow::likelihoodCurve_
private

Definition at line 136 of file MainWindow.h.

◆ lowestRefreshRate_

int find_object::MainWindow::lowestRefreshRate_
private

Definition at line 142 of file MainWindow.h.

◆ objectsModified_

bool find_object::MainWindow::objectsModified_
private

Definition at line 143 of file MainWindow.h.

◆ objWidgets_

QMap<int, find_object::ObjWidget*> find_object::MainWindow::objWidgets_
private

Definition at line 139 of file MainWindow.h.

◆ refreshStartTime_

QTime find_object::MainWindow::refreshStartTime_
private

Definition at line 141 of file MainWindow.h.

◆ sceneImage_

cv::Mat find_object::MainWindow::sceneImage_
private

Definition at line 147 of file MainWindow.h.

◆ tcpServer_

TcpServer* find_object::MainWindow::tcpServer_
private

Definition at line 146 of file MainWindow.h.

◆ ui_

Ui_mainWindow* find_object::MainWindow::ui_
private

Definition at line 133 of file MainWindow.h.

◆ updateRate_

QTime find_object::MainWindow::updateRate_
private

Definition at line 140 of file MainWindow.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10