simple_bev icon indicating copy to clipboard operation
simple_bev copied to clipboard

why "xyz_cam0 = utils.geom.apply_4x4(cams_T_velo[:,0], xyz_velo0)"?

Open yu-Mas opened this issue 1 year ago • 6 comments

Thanks for your great work. When i read the code, i meet a question in the line 145 of "train_nuscenes.py". xyz_cam0 = utils.geom.apply_4x4(cams_T_velo[:,0], xyz_velo0) "cams_T_velo[:,0]" means the "camera0 to world" and "xyz_velo0" means the points in the world coordinate.

It seems that followed code is right. xyz_cam0 = utils.geom.apply_4x4(velo_T_cams[:,0], xyz_velo0)

Except your reply. Thanks.

yu-Mas avatar Jul 25 '23 04:07 yu-Mas

And there is another question: intrinsics mean camera coordinate to image pixel coordinate,but variable "pix_T_cams_" seems represent from image pixel coordinate to camera coordinate.It confuses me for some time. pix_T_cams_ = utils.geom.merge_intrinsics(*utils.geom.split_intrinsics(intrins_)).to(device) Thanks for your reply.

yu-Mas avatar Jul 25 '23 06:07 yu-Mas

Thanks for asking. It looks like you may be interpreting the notation incorrectly. If you have a look at the "Geometry conventions" stated in the readme, these variables and matmuls should make more sense.

aharley avatar Jul 31 '23 21:07 aharley

  您好,邮件已收到,我会尽快处理,谢谢。

yu-Mas avatar Jul 31 '23 21:07 yu-Mas

Hi, I also find this hard to understanding, lrtlist_cam = utils.geom.apply_4x4_to_lrt(cam_T_velo[0:1].repeat(N_, 1, 1), lrtlist_).unsqueeze(0), and ChatGPT 4.0 seems fail to explain this neither. as lrtlist_ is already under self-car coordinates, shouldn't use velo_T_cam,why cam_T_velo

wcyjerry avatar Feb 02 '24 07:02 wcyjerry

@yu-Mas Have you figured this out?

wcyjerry avatar Feb 02 '24 07:02 wcyjerry

  您好,邮件已收到,我会尽快处理,谢谢。

yu-Mas avatar Feb 02 '24 07:02 yu-Mas