-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Convert camera extrinsic openCV to R and T matrix of SfMPerspectiveCameras #287
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
Comments
So to clarify you used the R & T (from the code example above) with There are two things you should check:
|
We have provided a more comprehensive description of our cameras along with coordinate systems. You can read more in our notes here: https://github.com/facebookresearch/pytorch3d/blob/master/docs/notes/cameras.md and also in the codebase. Let us know if you need any more info. |
@hiro050696 we will close this issue. If you have further questions feel free to reopen it. |
@hiro050696 Have you solved this problem? I'm also trying to convert extrinsics from ScanNet (which is in OpenCV coordinate system), but feeding converted [R, T] into SfMPerspective got empty rendering results. |
I'm also working on this problem. Has anyone figured it out? Looking at the opencv documentation, I think the reason for the issue is the coordinate systems. OpenCV uses a X-right, Y-down, Z-out (positive) coordinate system for pinhole camera model As Nikhila and Georgia showed in the really nice docs, Pytorch3D uses a X-left, Y-up, Z-out coordinate system. |
Hi, For those who are still looking for the solution, here is my solution: #522 (comment). Best, |
After using OpenCV cabliration, i got a 4x4 extrinsic matrix. I want to convert it to 2 matrix R and T form OpenCV coordinate to Pytorch3D coordinate, those matrix are used in SfMPerspectiveCameras projection function.
I tried a lot of approach but it didnt work correctly, maybe the problem is related to right-hand and left-hand coordinate system.
How can I do it?
The text was updated successfully, but these errors were encountered: