Export Bundler: Fixed custom matching parameters not used when ba iteration >=1

This commit is contained in:
matlabbe
2025-05-26 13:27:55 -07:00
parent 6781930100
commit 9394c0a170

View File

@@ -203,6 +203,7 @@ void ExportBundlerDialog::exportBundler(
}
if(_ui->sba_iterations->value() > 0)
{
UINFO("Do BA optimization with %d iterations.", _ui->sba_iterations->value());
poses = sba->optimizeBA(
posesOut.begin()->first,
posesOut,
@@ -210,11 +211,12 @@ void ExportBundlerDialog::exportBundler(
signatures.toStdMap(),
points3DMap,
wordReferences,
_ui->sba_rematchFeatures->isChecked());
_ui->sba_rematchFeatures->isChecked(),
parametersSBA);
}
else
{
// do not optimize, just compute 3D features and word correspondences
UINFO("Do not optimize, just compute 3D features and word correspondences.");
poses = posesOut;
sba->computeBACorrespondences(poses,
linksOut,