Skip to content

Commit

Permalink
draw "1 - Loop Thr" along with posterior (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
borongyuan authored Nov 2, 2024
1 parent 374df24 commit 75ac722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guilib/src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ MainWindow::MainWindow(PreferencesDialog * prefDialog, QWidget * parent, bool sh
_ui->posteriorPlot->showLegend(false);
_ui->posteriorPlot->setFixedYAxis(0,1);
UPlotCurveThreshold * tc;
tc = _ui->posteriorPlot->addThreshold("Loop closure thr", float(_preferencesDialog->getLoopThr()));
tc = _ui->posteriorPlot->addThreshold("1 - Loop Thr", 1.0 - _preferencesDialog->getLoopThr());
connect(this, SIGNAL(loopClosureThrChanged(qreal)), tc, SLOT(setThreshold(qreal)));

_likelihoodCurve = new PdfPlotCurve("Likelihood", &_cachedSignatures, this);
Expand Down Expand Up @@ -2412,7 +2412,7 @@ void MainWindow::processStats(const rtabmap::Statistics & stat)

ULOGGER_DEBUG("");
//Adjust thresholds
Q_EMIT(loopClosureThrChanged(_preferencesDialog->getLoopThr()));
Q_EMIT(loopClosureThrChanged(1.0 - _preferencesDialog->getLoopThr()));
}
if(!stat.likelihood().empty() && _ui->dockWidget_likelihood->isVisible())
{
Expand Down Expand Up @@ -4976,7 +4976,7 @@ void MainWindow::applyPrefSettings(const rtabmap::ParametersMap & parameters, bo
_ui->doubleSpinBox_stats_timeLimit->setValue(_preferencesDialog->getTimeLimit());
_ui->actionSLAM_mode->setChecked(_preferencesDialog->isSLAMMode());

Q_EMIT(loopClosureThrChanged(_preferencesDialog->getLoopThr()));
Q_EMIT(loopClosureThrChanged(1.0 - _preferencesDialog->getLoopThr()));
}

void MainWindow::drawKeypoints(const std::multimap<int, cv::KeyPoint> & refWords, const std::multimap<int, cv::KeyPoint> & loopWords)
Expand Down

0 comments on commit 75ac722

Please sign in to comment.