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

inconsistent documentation about transforms.json #3490

Open
jere1882 opened this issue Oct 20, 2024 · 1 comment
Open

inconsistent documentation about transforms.json #3490

jere1882 opened this issue Oct 20, 2024 · 1 comment

Comments

@jere1882
Copy link

The docstings in the data convention say that transforms.js expects extrinsics of the form

    // [+X0 +Y0 +Z0 X]
    // [+X1 +Y1 +Z1 Y]
    // [+X2 +Y2 +Z2 Z]
    // [0.0 0.0 0.0 1]

yet colmap exports the last row to have non zero values in the first three rows, and works perfectly. I havea custom dataset with know camera poses, yet using the description mentioned above doesn't work.

What is the actual precise meaning of the top-left submatrix? Can someone please document this accurately? The docstring is very vague

@maturk
Copy link
Collaborator

maturk commented Oct 20, 2024

These are just SE(3) rigid body transform matrices. Nerfstudio uses the C2W (camera to world) convention whereas raw COLMAP output gives W2C (world to camera) transforms. To transform one from the other, inversion is required. The top T[:3,:3] elements of the transform is the rotation component (SO(3)) and the last column T[:3,3] is the translation component.

Which part of the description does not make sense (not accurate)?

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