mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-10 11:59:50 +08:00
Export Bundler: Fixed custom matching parameters not used when ba iteration >=1
This commit is contained in:
@@ -203,6 +203,7 @@ void ExportBundlerDialog::exportBundler(
|
|||||||
}
|
}
|
||||||
if(_ui->sba_iterations->value() > 0)
|
if(_ui->sba_iterations->value() > 0)
|
||||||
{
|
{
|
||||||
|
UINFO("Do BA optimization with %d iterations.", _ui->sba_iterations->value());
|
||||||
poses = sba->optimizeBA(
|
poses = sba->optimizeBA(
|
||||||
posesOut.begin()->first,
|
posesOut.begin()->first,
|
||||||
posesOut,
|
posesOut,
|
||||||
@@ -210,11 +211,12 @@ void ExportBundlerDialog::exportBundler(
|
|||||||
signatures.toStdMap(),
|
signatures.toStdMap(),
|
||||||
points3DMap,
|
points3DMap,
|
||||||
wordReferences,
|
wordReferences,
|
||||||
_ui->sba_rematchFeatures->isChecked());
|
_ui->sba_rematchFeatures->isChecked(),
|
||||||
|
parametersSBA);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// do not optimize, just compute 3D features and word correspondences
|
UINFO("Do not optimize, just compute 3D features and word correspondences.");
|
||||||
poses = posesOut;
|
poses = posesOut;
|
||||||
sba->computeBACorrespondences(poses,
|
sba->computeBACorrespondences(poses,
|
||||||
linksOut,
|
linksOut,
|
||||||
|
|||||||
Reference in New Issue
Block a user