Skip to content

Fix Ceres version test#1954

Merged
ahojnnes merged 1 commit intocolmap:devfrom
drkoller:ceres-version-fix
Jun 9, 2023
Merged

Fix Ceres version test#1954
ahojnnes merged 1 commit intocolmap:devfrom
drkoller:ceres-version-fix

Conversation

@drkoller
Copy link
Copy Markdown
Contributor

@drkoller drkoller commented Jun 8, 2023

In #1477, checks of the Ceres version were added to choose between the newer ceres::Manifold or the deprecated ceres::LocalParameterization interface, e.g.:

#if CERES_VERSION_MAJOR >= 2 && CERES_VERSION_MINOR >= 1

However, this test will incorrectly return False for Ceres versions 3.0, 4.0, etc. This PR fixes this bug so that True is returned for all Ceres versions 2.1 and beyond.

@ahojnnes
Copy link
Copy Markdown
Contributor

ahojnnes commented Jun 9, 2023

Great, thanks for the fix.

@ahojnnes ahojnnes merged commit 3cf97d0 into colmap:dev Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants