Converts a rotation matrix to a quaternion representation
q = rot_matrix2quaternion(R)
rot_matrix2quaternion
converts a 3x3 matrix representation
of a rotation to the quaternion representation. This is important in robotics
as well as in inverse kinematic problems arising in 3D computer vision.
http://siptoolbox.sf.net