From 25e7b8da944d0db4ccd1a20b47601a4006fb4612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6ps?= Date: Tue, 14 Apr 2020 14:22:20 +0200 Subject: [PATCH] Surfel densification: Default to a minimum observation count of 2 --- applications/badslam/src/badslam/gui_main_window.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/badslam/src/badslam/gui_main_window.cc b/applications/badslam/src/badslam/gui_main_window.cc index 5aef89b..1540779 100644 --- a/applications/badslam/src/badslam/gui_main_window.cc +++ b/applications/badslam/src/badslam/gui_main_window.cc @@ -1333,7 +1333,7 @@ void MainWindow::DensifySurfels() { } int reconstruction_sparse_surfel_cell_size = 1; - int reconstruction_minimum_observation_count = 1; + int reconstruction_minimum_observation_count = 2; QDialog densify_dialog(this); densify_dialog.setWindowTitle(tr("Densify surfels")); @@ -1342,12 +1342,12 @@ void MainWindow::DensifySurfels() { QGridLayout* settings_layout = new QGridLayout(); QLabel* surfel_creation_cell_size_label = new QLabel(tr("Surfel creation cell size (in SLAM: %1; densest: 1): ").arg(bad_slam_->direct_ba().sparse_surfel_cell_size())); - QLineEdit* surfel_creation_cell_size_edit = new QLineEdit("1"); + QLineEdit* surfel_creation_cell_size_edit = new QLineEdit(QString::number(reconstruction_sparse_surfel_cell_size)); settings_layout->addWidget(surfel_creation_cell_size_label, 0, 0); settings_layout->addWidget(surfel_creation_cell_size_edit, 0, 1); QLabel* minimum_observation_count_label = new QLabel(tr("Minimum observation count (in SLAM: %1; densest: 1): ").arg(bad_slam_->direct_ba().min_observation_count())); - QLineEdit* minimum_observation_count_edit = new QLineEdit("1"); + QLineEdit* minimum_observation_count_edit = new QLineEdit(QString::number(reconstruction_minimum_observation_count)); settings_layout->addWidget(minimum_observation_count_label, 1, 0); settings_layout->addWidget(minimum_observation_count_edit, 1, 1);