Skip to content

Commit 3d6268c

Browse files
Fabien Servantcbentejac
authored andcommitted
Remove Symbolic BA
1 parent cb9dcaa commit 3d6268c

File tree

12 files changed

+22
-1345
lines changed

12 files changed

+22
-1345
lines changed

src/aliceVision/sfm/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
set(sfm_bundle_files_headers
33
bundle/BundleAdjustment.hpp
44
bundle/BundleAdjustmentCeres.hpp
5-
bundle/BundleAdjustmentSymbolicCeres.hpp
65
)
76

87
# Sources
98
set(sfm_bundle_files_sources
109
bundle/BundleAdjustmentCeres.cpp
11-
bundle/BundleAdjustmentSymbolicCeres.cpp
1210
)
1311

1412
set(sfm_files_headers

src/aliceVision/sfm/bundle/BundleAdjustmentSymbolicCeres.cpp

Lines changed: 0 additions & 859 deletions
This file was deleted.

src/aliceVision/sfm/bundle/BundleAdjustmentSymbolicCeres.hpp

Lines changed: 0 additions & 275 deletions
This file was deleted.

src/aliceVision/sfm/bundle/bundleAdjustment_Enhanced_test.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <aliceVision/sfmData/SfMData.hpp>
1010
#include <aliceVision/sfm/bundle/BundleAdjustmentCeres.hpp>
11-
#include <aliceVision/sfm/bundle/BundleAdjustmentSymbolicCeres.hpp>
1211
#include <aliceVision/geometry/lie.hpp>
1312
#include <aliceVision/geometry/Intersection.hpp>
1413
#include <aliceVision/sfm/utils/statistics.hpp>
@@ -182,14 +181,14 @@ BOOST_AUTO_TEST_CASE(test_intrinsics)
182181

183182
sfmData.getIntrinsics().at(0) = pairIntrinsics.second;
184183

185-
sfm::BundleAdjustmentSymbolicCeres::CeresOptions options;
184+
sfm::BundleAdjustmentCeres::CeresOptions options;
186185
sfm::BundleAdjustment::ERefineOptions refineOptions = sfm::BundleAdjustment::REFINE_INTRINSICS_FOCAL |
187186
sfm::BundleAdjustment::REFINE_INTRINSICS_OPTICALOFFSET_ALWAYS |
188187
sfm::BundleAdjustment::REFINE_INTRINSICS_DISTORTION;
189188
options.summary = false;
190189

191190
double rmseBefore = sfm::RMSE(sfmData);
192-
sfm::BundleAdjustmentSymbolicCeres BA(options);
191+
sfm::BundleAdjustmentCeres BA(options);
193192
const bool success = BA.adjust(sfmData, refineOptions);
194193
double rmseAfter = sfm::RMSE(sfmData);
195194

@@ -217,12 +216,12 @@ BOOST_AUTO_TEST_CASE(test_landmarks)
217216
lpt.second.X += Eigen::Vector3d::Random() * 0.1;
218217
}
219218

220-
sfm::BundleAdjustmentSymbolicCeres::CeresOptions options;
219+
sfm::BundleAdjustmentCeres::CeresOptions options;
221220
sfm::BundleAdjustment::ERefineOptions refineOptions = sfm::BundleAdjustment::REFINE_STRUCTURE;
222221
options.summary = false;
223222

224223
double rmseBefore = sfm::RMSE(sfmData);
225-
sfm::BundleAdjustmentSymbolicCeres BA(options);
224+
sfm::BundleAdjustmentCeres BA(options);
226225
const bool success = BA.adjust(sfmData, refineOptions);
227226
double rmseAfter = sfm::RMSE(sfmData);
228227

@@ -260,12 +259,12 @@ BOOST_AUTO_TEST_CASE(test_poses)
260259
lps.second.setTransform(geometry::Pose3(U * T));
261260
}
262261

263-
sfm::BundleAdjustmentSymbolicCeres::CeresOptions options;
262+
sfm::BundleAdjustmentCeres::CeresOptions options;
264263
sfm::BundleAdjustment::ERefineOptions refineOptions = sfm::BundleAdjustment::REFINE_ROTATION | sfm::BundleAdjustment::REFINE_TRANSLATION;
265264
options.summary = false;
266265

267266
double rmseBefore = sfm::RMSE(sfmData);
268-
sfm::BundleAdjustmentSymbolicCeres BA(options);
267+
sfm::BundleAdjustmentCeres BA(options);
269268
const bool success = BA.adjust(sfmData, refineOptions);
270269
double rmseAfter = sfm::RMSE(sfmData);
271270

src/aliceVision/sfm/pipeline/expanding/SfmBundle.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66

77
#include "SfmBundle.hpp"
88
#include <aliceVision/sfm/sfmFilters.hpp>
9-
#include <aliceVision/sfm/bundle/BundleAdjustmentSymbolicCeres.hpp>
109
#include <aliceVision/sfm/bundle/BundleAdjustmentCeres.hpp>
1110

1211
namespace aliceVision {
1312
namespace sfm {
1413

1514
bool SfmBundle::process(sfmData::SfMData & sfmData, const track::TracksHandler & tracksHandler, const std::set<IndexT> & viewIds)
1615
{
17-
BundleAdjustmentSymbolicCeres::CeresOptions options;
16+
BundleAdjustmentCeres::CeresOptions options;
1817
BundleAdjustment::ERefineOptions refineOptions;
1918

2019
refineOptions |= BundleAdjustment::REFINE_ROTATION;
@@ -28,7 +27,7 @@ bool SfmBundle::process(sfmData::SfMData & sfmData, const track::TracksHandler &
2827
}
2928

3029
options.setSparseBA();
31-
BundleAdjustmentSymbolicCeres bundleObject(options, _minNbCamerasToRefinePrincipalPoint);
30+
BundleAdjustmentCeres bundleObject(options, _minNbCamerasToRefinePrincipalPoint);
3231

3332
//Repeat until nothing change
3433
do

src/aliceVision/sfm/pipeline/expanding/SfmResection.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <aliceVision/multiview/resection/ResectionSphericalKernel.hpp>
1515
#include <aliceVision/matching/supportEstimation.hpp>
1616
#include <aliceVision/sfm/bundle/BundleAdjustmentCeres.hpp>
17-
#include <aliceVision/sfm/bundle/BundleAdjustmentSymbolicCeres.hpp>
1817

1918
namespace aliceVision {
2019
namespace sfm {
@@ -162,7 +161,7 @@ bool SfmResection::internalRefinement(
162161
tinyScene.getLandmarks()[i] = std::move(landmark);
163162
}
164163

165-
BundleAdjustmentSymbolicCeres BA;
164+
BundleAdjustmentCeres BA;
166165
BundleAdjustment::ERefineOptions refineOptions = BundleAdjustment::REFINE_ROTATION | BundleAdjustment::REFINE_TRANSLATION;
167166

168167
const bool success = BA.adjust(tinyScene, refineOptions);

src/aliceVision/sfm/pipeline/localization/SfMLocalizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "SfMLocalizer.hpp"
99
#include <aliceVision/config.hpp>
1010
#include <aliceVision/sfm/bundle/BundleAdjustmentCeres.hpp>
11-
#include <aliceVision/sfm/bundle/BundleAdjustmentSymbolicCeres.hpp>
1211
#include <aliceVision/robustEstimation/ACRansac.hpp>
1312
#include <aliceVision/robustEstimation/LORansac.hpp>
1413
#include <aliceVision/robustEstimation/ScoreEvaluator.hpp>

0 commit comments

Comments
 (0)