1 | initial version |
If you want to average rotations together, the only sane method is quaternions.
First convert the rvec to a rotation matrix with the Rodrigues method.
Then convert the rotation matrix to a quaternion and average them. Convert the quaternion back to a rotation, then back to an rvec, if you need to.