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

Very confused about this line of code #84

Open
HaisongDing opened this issue Dec 30, 2024 · 0 comments
Open

Very confused about this line of code #84

HaisongDing opened this issue Dec 30, 2024 · 0 comments

Comments

@HaisongDing
Copy link

cam_poses[:, :3, 1:3] *= -1 # invert up & forward direction

In this code, given a camera pose, you want to convert it from opengl to colmap format by reverting the up and forward direction. According to https://github.com/ashawkey/kiuikit/blob/73e34203fd3bd4b5979dc3a38057dff117b39521/kiui/cam.py#L31, it is done by pose[1:3, :] *= -1. But in the above code, it is done by pose[:, 1:3] *= -1

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

1 participant