-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix similarity scale error #1288
base: develop
Are you sure you want to change the base?
Conversation
src/openMVG/geometry/Similarity3.cpp
Outdated
@@ -37,7 +37,7 @@ Pose3 Similarity3::operator () ( const Pose3 & pose ) const | |||
|
|||
Similarity3 Similarity3::inverse() const | |||
{ | |||
return Similarity3(pose_.inverse(), 1.0 / scale_); | |||
return Similarity3(Pose3(pose_.rotation(),-pose_.rotation()*pose_.center()*scale_), 1.0 / scale_); |
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.
rotation needs to be inverted
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.
true, with the rotation inverted it solves #1285
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.
@Yannnnnnnnnnnn @sebastienchappuis Do you want to make a PR with a unit test and the fix?
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.
made a stupid error here.
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.
@pmoulon I will try to add an unit test here and fix it.
There is an error in pose.inverse() when scale exists.