-
Notifications
You must be signed in to change notification settings - Fork 112
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 conversion of colmap pose prior #57
base: main
Are you sure you want to change the base?
Conversation
@lpanaf Shall we merge this or anything is missing? |
I still have not find chance to test it in someway. I would wait until this is done :) |
@@ -56,6 +56,9 @@ bool RotationEstimator::EstimateRotations( | |||
image.cam_from_world.rotation = Eigen::Quaterniond(AngleAxisToRotation( | |||
rotation_estimated_.segment(image_id_to_idx_[image_id], 3))); | |||
} | |||
// Restore the prior position (t = -Rc = R * R_ori * t_ori = R * t_ori) |
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.
R * R_ori * t_ori = R * t_ori
The equation only holds when R_ori is identity.
However, EstimateRotations will be called twice in GlobalMapper::Solve.
Fixes issue #34