Skip to content

Commit

Permalink
Merge pull request #871 from alicevision/dev/cleanupBundlePano
Browse files Browse the repository at this point in the history
[sfm] Remove useless ordering for panorama
  • Loading branch information
fabiencastan authored Sep 4, 2020
2 parents 835f6ee + cfac9e2 commit 3a81e4d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions src/aliceVision/sfm/BundleAdjustmentPanoramaCeres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,6 @@ void BundleAdjustmentPanoramaCeres::setSolverOptions(ceres::Solver::Options& sol
#if CERES_VERSION_MAJOR < 2
solverOptions.num_linear_solver_threads = _ceresOptions.nbThreads;
#endif

if(_ceresOptions.useParametersOrdering)
{
solverOptions.linear_solver_ordering.reset(new ceres::ParameterBlockOrdering);

// copy ParameterBlockOrdering
*(solverOptions.linear_solver_ordering) = _ceresOptions.linearSolverOrdering;
}
}

void BundleAdjustmentPanoramaCeres::addExtrinsicsToProblem(const sfmData::SfMData& sfmData, BundleAdjustment::ERefineOptions refineOptions, ceres::Problem& problem)
Expand Down
2 changes: 0 additions & 2 deletions src/aliceVision/sfm/BundleAdjustmentPanoramaCeres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ class BundleAdjustmentPanoramaCeres : public BundleAdjustment
ceres::LinearSolverType linearSolverType;
ceres::PreconditionerType preconditionerType;
ceres::SparseLinearAlgebraLibraryType sparseLinearAlgebraLibraryType;
ceres::ParameterBlockOrdering linearSolverOrdering;
unsigned int nbThreads;
bool useParametersOrdering = true;
bool summary = false;
bool verbose = true;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ bool ReconstructionEngine_panorama::Compute_Global_Rotations(const rotationAvera
bool ReconstructionEngine_panorama::Adjust()
{
BundleAdjustmentPanoramaCeres::CeresOptions options;
options.useParametersOrdering = false;
options.summary = true;

// Start bundle with rotation only
Expand Down

0 comments on commit 3a81e4d

Please sign in to comment.