neu-vi / PlanarRecon

Apache License 2.0
277 stars 11 forks source link

data['camera_to_aligned_camera'],planes_gt coordinate transformation and plane distance loss #13

Closed wangshuailpp closed 1 year ago

wangshuailpp commented 1 year ago

hey@ymingxie, Thanks for your work! I have some questions to ask you for,Looking forward to your answer!

ymingxie commented 1 year ago

Hi, this matrix is to convert the plane parameters from camera coordinate to a gravity-aligned coordinate :) The matrix is generated here: https://github.com/neu-vi/PlanarRecon/blob/main/datasets/transforms.py#L65. Because in ScanNet world coordinate the inverse z axis is gravity direction, we can generate the gravity-aligned coordinate by using the transformation from camera to world coordinate. NeuralRecon also has this transformation (https://github.com/zju3dv/NeuralRecon/blob/master/datasets/transforms.py#L79)

The plane gt and r_coords are both in the aligned_camera (gravity-aligned) coordinate. It should be OK.

Feel free to reach out to me if you have more questions :)

wangshuailpp commented 1 year ago

Thanks! I got it!