Hello everyone
I am trying to convert the transformation coefficients, obtained from the EMAN2's iterative alignment of tilt-series, into the coefficients of the IMOD format (available in .xf) . The goal is to do the weighted back-projected in IMOD using EMAN2's transformation coefficients.
Can you please confirm if the transformation operations listed below for EMAN2 are correct? Even more useful if someone already has a function to convert EMAN2's coefficients into the coefficients of the IMOD format.
Transformations in EMAN2 to align tilt-series:
(1) Translation along X :
X' = X + DX
(2) Translation along Y:
Y' = Y + DX. Z'=Z.
(3) Rotation along Z by the angle a
[X'' Y'' Z''] = [X' Y' Z'] [cosa sina 0
-sina cosa 0
0 0. 1]
(4) Rotation along Y by the angle b
[X''' Y''' Z'''] = [X'' Y'' Z''] [ cosb 0 -sinb
0 1 0
sinb 0 cosb]
(5) Rotation along X by the angle c
[X'''' Y'''' Z''''] = [X''' Y''' Z'''] [1 0 0
0 cosc sinc
0 -sinc cosc]
Transformations in IMOD to align tilt-series (taken from IMOD's website)
Each linear transformation in a transform file is specified by a line with six numbers (A11 A12 A21 A22 DX DY) where the coordinate (X, Y) is transformed to (X', Y') by:
X' = A11 * X + A12 * Y + DX
Y' = A21 * X + A22 * Y + DY
Thanks
--