Skip to content

Conversation

B1ueber2y
Copy link
Contributor

No description provided.

@@ -41,6 +41,11 @@ namespace poselib {
// Y. Ding, J. Yang, V. Larsson, C. Olsson, K. Åström, Revisiting the P3P Problem, CVPR 2023
int relpose_upright_3pt(const std::vector<Eigen::Vector3d> &x1, const std::vector<Eigen::Vector3d> &x2,
CameraPoseVector *output);

// Wrapper for non-upright gravity (g_cam = R*g_world)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could clarify in the comment which one is the g in world? (g_cam1 or g_cam2). Such it is possible to understand without looking at the implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neither is g in world. They are the gravity in both camera frames. I think g in world is not needed in this relative pose setup as we only need to rotate the two frames to a frame with consistent "upright" vector, in this case [0 1 0]. I have updated the comment to avoid confusion.

@B1ueber2y B1ueber2y marked this pull request as draft December 14, 2024 10:14
@B1ueber2y B1ueber2y marked this pull request as ready for review December 14, 2024 11:52
@B1ueber2y B1ueber2y requested a review from pablospe December 14, 2024 11:55
Copy link
Collaborator

@vlarsson vlarsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pablospe pablospe merged commit 69ae96b into PoseLib:master Dec 14, 2024
1 check passed
@B1ueber2y B1ueber2y deleted the features/relpose_gravity branch December 14, 2024 22:31
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