2
votes

what is the algorithm used to calculate the yaw(z axis), roll(x axis) and pitch(y axis) from the 3*3 rotation matrix generated by cvPOSIT.

1
Note: cvPOSIT has been replaced by solvePnP, though is still available in the C apiBrian Burns

1 Answers

3
votes

Use cv::RQDecomp3x3(). "It optionally returns three rotation matrices, one for each axis, and the three Euler angles in degrees (as the return value)".
Note that the results are degrees.