Skip to content

Commit

Permalink
update colmap version (#143)
Browse files Browse the repository at this point in the history
* update colmap version

* f

* d
  • Loading branch information
lpanaf authored Nov 28, 2024
1 parent ae015fd commit e7e8a41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmake/FindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ message(STATUS "Configuring PoseLib... done")

FetchContent_Declare(COLMAP
GIT_REPOSITORY https://github.com/colmap/colmap.git
GIT_TAG 3254263266949413d7c669e44abeb4a7c2670a8b
GIT_TAG 78f1eefacae542d753c2e4f6a26771a0d976227d
EXCLUDE_FROM_ALL
)
message(STATUS "Configuring COLMAP...")
Expand Down
8 changes: 4 additions & 4 deletions glomap/controllers/track_retriangulation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ bool RetriangulateTracks(const TriangulatorOptions& options,
const size_t num_observations =
reconstruction_ptr->ComputeNumObservations();

// PrintHeading1("Bundle adjustment");
colmap::BundleAdjuster bundle_adjuster(ba_options, ba_config);
// THROW_CHECK(bundle_adjuster.Solve(reconstruction.get()));
if (!bundle_adjuster.Solve(reconstruction_ptr.get())) {
std::unique_ptr<colmap::BundleAdjuster> bundle_adjuster;
bundle_adjuster =
CreateDefaultBundleAdjuster(ba_options, ba_config, *reconstruction_ptr);
if (bundle_adjuster->Solve().termination_type == ceres::FAILURE) {
return false;
}

Expand Down

0 comments on commit e7e8a41

Please sign in to comment.