6DRepNet icon indicating copy to clipboard operation
6DRepNet copied to clipboard

Query regarding face pose axis visualisation

Open shubhamwagh opened this issue 3 years ago • 3 comments

I see that to construct rotation matrix(R) from yaw, pitch and roll angle values, you use zyx order i.e Rz * Ry * Rx, where Rz is rotation about z-axis, Ry is rotation about the y-axis, and Rx is rotation about the x-axis.

But for visualisation, it looks like the order you use is xyz i.e Rx * Ry * Rz and then use column vectors of this resulting matrix as axis coordinates (https://github.com/thohemp/6DRepNet/blob/master/utils.py#L54). May I know why this is done? Am I missing something?

Thanks.

shubhamwagh avatar May 25 '22 23:05 shubhamwagh

The order of the rotation matrix is actually XYZ: https://github.com/thohemp/6DRepNet/blob/master/utils.py#L207

thohemp avatar Jun 03 '22 10:06 thohemp

Dear @thohemp Thank you very much for providing a great demo :) It was very helpful.

https://github.com/thohemp/6DRepNet/blob/master/utils.py#L207 I think you got the rotation matrix using pitch-yaw-roll order. However, https://github.com/thohemp/6DRepNet/blob/master/utils.py#L54 It looks like roll-yaw-pitch order. (see how x3 and y3 are defined. They are independent on roll).

Did I think something wrong? (@shubhamwagh) Thank you.

chwoong avatar Aug 12 '22 15:08 chwoong

@chwoong yes exactly.

shubhamwagh avatar Aug 16 '22 16:08 shubhamwagh