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.
2 | No.2 Revision |
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.