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

about rotate to camera coordinates #12

Open
92ypli opened this issue Nov 28, 2021 · 2 comments
Open

about rotate to camera coordinates #12

92ypli opened this issue Nov 28, 2021 · 2 comments

Comments

@92ypli
Copy link

92ypli commented Nov 28, 2021

Hello, how do you understand this matrix?
# Rotate to camera coordinates
R = np.array([[0., -1., 0., 0.],
[0., 0., -1., 0.],
[1., 0., 0., 0.],
[0., 0., 0., 1.]])
In other words, how do I rotate the axes to get this matrix?

@92ypli
Copy link
Author

92ypli commented Nov 28, 2021

As I understand it, it should be rotated 90 degrees counterclockwise along the X axis and 90 degrees clockwise along the y axis,
but, i get below matrix:
R = np.array([[0., -1., 0., 0.],
[0., 0., 1., 0.],
[-1., 0., 0., 0.],
[0., 0., 0., 1.]])

@darylclimb
Copy link
Owner

Sorry for the late reply.
We are following this convention. https://www.mathworks.com/help/vision/gs/coordinate-systems.html

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