Name
rotation_between_anglesets - Find overall 3D rotation (phi theta psi) between two sets of Eulerian angles.
Usage
rotation = rotation_between_anglesets(set1, set2)
Input
- set1
- first angle list [[phi1, theta1, psi1], [phi2, theta2, psi2], ... ]
- set2
- second angle list [[[phi1, theta1, psi1], [phi2, theta2, psi2], ... ]
Output
- rotation
- overall rotation [phi, theta, psi]
Description
Find overall 3D rotation (phi theta psi) between two sets of Eulerian angles. The two sets have to be of the same length and it is assume that k'th element on the first list corresponds to the k'th element on the second list. The second list is considered as reference. It means the overall rotation phi, theta, psi has to be applied to the first list (set1) to get the resulting angles agree with the second list set2.
Note: all angles have to be in spider convention
Reference
Appendix in Penczek, P., Marko, M., Buttle, K. and Frank, J.: Double-tilt electron tomography. Ultramicroscopy 60:393-410, 1995.
Author / Maintainer
Julien
Keywords
- category 1
- UTILITIES
Files
utilities.py
Maturity
- stable
- works for most people, has been tested; test cases/examples available.
Bugs
None. It is perfect.