Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can get the rotation vector from the rotation matrix directly with cv::Rodrigues.

If you have Euler angles, you can construct the corresponding rotation matrix.

You can get the rotation vector from the rotation matrix directly with cv::Rodrigues.

If you have Euler angles, you can construct the corresponding rotation matrix.matrix according to the chosen convention.

An exemple of how the code looks like here: euler2rot for the Euler angles convention he chose.