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

Calculate the relative camera pose of 2 images #100

Open
KhanhNgoDuy opened this issue May 3, 2024 · 1 comment
Open

Calculate the relative camera pose of 2 images #100

KhanhNgoDuy opened this issue May 3, 2024 · 1 comment

Comments

@KhanhNgoDuy
Copy link

Hi, how can I calculate the relative pose of 2 images.

Specifically, I want to know the (difference in) azimuth, elevation and radius of the 2 viewpoints (which correspond to the 2 camera).

@vincent-leroy
Copy link
Contributor

Hi @KhanhNgoDuy
Please check-out this line for pairwise relative pose:

res = cv2.solvePnPRansac(pts3d[msk], pixels[msk], K, None,

the res variable contains rotation R and translation T as extracted and processed in the lines right after.

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

No branches or pull requests

2 participants