Skip to content
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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ahojnnes
Copy link
Contributor

Fixes issue #34

@ahojnnes ahojnnes requested a review from lpanaf August 12, 2024 07:24
@ahojnnes
Copy link
Contributor Author

@lpanaf Shall we merge this or anything is missing?

@lpanaf
Copy link
Collaborator

lpanaf commented Aug 29, 2024

@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)
Copy link
Contributor

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.

@lpanaf lpanaf marked this pull request as draft November 27, 2024 17:29
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.

3 participants