sc_depth_pl icon indicating copy to clipboard operation
sc_depth_pl copied to clipboard

quat2mat

Open ZhiyiHe1997 opened this issue 2 years ago • 5 comments

https://github.com/JiawangBian/sc_depth_pl/blob/2f76ce86524188c1ac04d0d1d4a9bd45eb3902e0/losses/inverse_warp.py#L63 if we use the quaternion coefficients as shown in image1 image according to the Rodriguez formula,We can deduce the rotation matrix,as shown in image2 image i find there are difference between formula and codes. Could you tell me the details of the changes you have made?

ZhiyiHe1997 avatar Aug 31 '22 09:08 ZhiyiHe1997

Just copied from https://github.com/ClementPinard/SfmLearner-Pytorch/blob/master/inverse_warp.py. Didn't use it.

JiawangBian avatar Aug 31 '22 09:08 JiawangBian

yes, i saw it, may i ask it will influence the results? have you think adout this trick?

ZhiyiHe1997 avatar Aug 31 '22 09:08 ZhiyiHe1997

You can try this one "https://kornia.readthedocs.io/en/latest/_modules/kornia/geometry/conversions.html#quaternion_to_rotation_matrix" if you need it.

JiawangBian avatar Aug 31 '22 09:08 JiawangBian

yes, i saw it, may i ask it will influence the results? have you think adout this trick?

I tried it before and got very similar results compared to using euler angle on KITTI.

JiawangBian avatar Aug 31 '22 09:08 JiawangBian

ok , thanks for your reply. i will try it later. Best regards.

ZhiyiHe1997 avatar Aug 31 '22 09:08 ZhiyiHe1997