jingsenzhu / i2-sdf

[CVPR 2023] I^2-SDF: Intrinsic Indoor Scene Reconstruction and Editing via Raytracing in Neural SDFs
MIT License
184 stars 10 forks source link

Dataset camera intrinsics #8

Open gaoalexander opened 1 year ago

gaoalexander commented 1 year ago

Hi,

Thanks for sharing this work. Does the dataset contain any camera intinsics information, such as focal length / fov, optical center, etc? It seems like cameras.npz contains only the camera to world transformation matrix.

Thanks!

jingsenzhu commented 1 year ago

The world_mat_{i} in cameras.npz is the multiplication of intrinsics and extrinsics, i.e. K @ W2C, which can be decomposed by cv2.decomposeProjectionMatrix to obtain the intrinsics and extrinsics.

See https://github.com/jingsenzhu/i2-sdf/blob/main/utils/rend_util.py#L57 for details.