-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Use ceres::Manifolds instead of ceres::LocalParameterization. #3243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latter is deprecated.
@@ -494,8 +499,13 @@ void EuclideanBundleCommonIntrinsics( | |||
constant_translation.push_back(4); | |||
constant_translation.push_back(5); | |||
|
|||
#if CERES_VERSION_MAJOR >= 2 && CERES_VERSION_MINOR >= 1 | |||
constant_translation_parameterization = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean constant_translation_manifold
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, thx. Fixed
@@ -485,7 +486,11 @@ void EuclideanBundleCommonIntrinsics( | |||
PackCamerasRotationAndTranslation(tracks, *reconstruction); | |||
|
|||
// Parameterization used to restrict camera motion for modal solvers. | |||
#if CERES_VERSION_MAJOR >= 2 && CERES_VERSION_MINOR >= 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is not accurate as 3.0 version returns false
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx, fixed.
@@ -538,8 +548,13 @@ void EuclideanBundleCommonIntrinsics( | |||
} | |||
|
|||
if (bundle_constraints & BUNDLE_NO_TRANSLATION) { | |||
#if CERES_VERSION_MAJOR >= 2 && CERES_VERSION_MINOR >= 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same issue with 3.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, sorry about that.
@@ -586,10 +601,17 @@ void EuclideanBundleCommonIntrinsics( | |||
// Always set K3 constant, it's not used at the moment. | |||
constant_intrinsics.push_back(OFFSET_K3); | |||
|
|||
#if CERES_VERSION_MAJOR >= 2 && CERES_VERSION_MINOR >= 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
error: cannot initialize a parameter of type 'ceres::LocalParameterization *' with an lvalue of type 'ceres::SubsetManifold *' |
* Use ceres::Manifolds instead of ceres::LocalParameterization. The latter is deprecated. * Fix typo. * Fix version check. * And more version fixes.
Use ceres::Manifolds instead of ceres::LocalParameterization.
The latter is deprecated.
This fixes #3218
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request