nv-tlabs / NKSR

[CVPR 2023 Highlight] Neural Kernel Surface Reconstruction
https://research.nvidia.com/labs/toronto-ai/NKSR
Other
747 stars 43 forks source link

How to Obtain the input_sensor Information #19

Closed Zhimin-C closed 1 year ago

Zhimin-C commented 1 year ago

Thanks for the great work! I want to apply the method on the point cloud collected from Velodyne lidar. May you tell me how to obtain the input_sensor information from the kitti format? Thanks.

heiwang1997 commented 1 year ago

Yes! Here is some pseudo-code for doing that:

xyz_list = []
sensor_list = []
for frame_idx in range(1000):
    xyz = load_kitti_lidar(frame_idx)
    pose = load_kitti_pose(frame_idx)
    xyz_list.append(pose.transform(xyz))
    sensor_list.append(pose.transform([[0,0,0] for _ in range(xyz.shape[0])]))
xyz = np.concatenate(xyz_list)
sensor = np.concatenate(sensor_list)

For more details, could you refer to #3? Thanks

Zhimin-C commented 1 year ago

Thanks!