|
Bsoft
2.0.0
Bernard's software package
|
#include "mg_processing.h"#include "mg_img_proc.h"#include "mg_tomography.h"#include "rwmg.h"#include "rwimg.h"#include "linked_list.h"#include "utilities.h"#include "options.h"#include "timer.h"Go to the source code of this file.
Functions | |
| Bproject * | project_from_IMOD (Bstring *file_list, int flag) |
| Creates a project structure using IMOD parameters. More... | |
| int | write_IMOD_parameters (Bstring &imodfile, Bproject *project) |
| Creates IMOD parameter files from a project structure. More... | |
| int | main (int argc, char **argv) |
Variables | |
| int | verbose |
| long | memory |
| const char * | use [] |
Creates a project structure using IMOD parameters.
| file_list | list of IMOD parameter file names. |
| flag | flag to indicate conversion of the image file. |
Requirements:
Tilt series micrograph image (if 3D then converted to multi-2D)
2D transform file (.xf)
Tilt angle file (.tlt)
Calculations:
Tilt angle: from tilt angle file
Tilt axis: ta = (atan2(-A11, A12) + atan2(-A22, -A21))/2
Mg origin: o = on - Ad
where
A: 2x2 transformation matrix
ta: tilt axis angle
on: nominal micrograph origin (center of mg)
o: aligned micrograph origin
d: shift for micrograph| *file_list | list of IMOD parameter file names. |
| flag | flag to indicate conversion of the image file. |
Requirements:
Tilt series micrograph image (if 3D then converted to multi-2D)
2D transform file (.xf)
Tilt angle file (.tlt)
Calculations:
Tilt angle: from tilt angle file
Tilt axis: ta = (atan2(-A11, A12) + atan2(-A22, -A21))/2
Mg origin: o = on - Ad
where
A: 2x2 transformation matrix
ta: tilt axis angle
on: nominal micrograph origin (center of mg)
o: aligned micrograph origin
d: shift for micrograph Creates IMOD parameter files from a project structure.
| imodfile | IMOD parameter file name. |
| project | project structure. |
Writes both .xf and .tlt files.
Calculations:
Tilt angle: from micrograph tilt angle
Matrix: A = {cos(ta), -sin(ta), sin(ta), cos(ta)}
Shift: d = o - on
where
A: 2x2 transformation matrix
ta: tilt axis angle
on: nominal micrograph origin (center of mg)
o: aligned micrograph origin
d: shift for micrograph| &imodfile | IMOD parameter file name. |
| *project | project structure. |
Writes both .xf and .tlt files.
Calculations:
Tilt angle: from micrograph tilt angle
Matrix: A = {cos(ta), -sin(ta), sin(ta), cos(ta)}
Shift: d = o - on
where
A: 2x2 transformation matrix
ta: tilt axis angle
on: nominal micrograph origin (center of mg)
o: aligned micrograph origin
d: shift for micrograph | long memory |
| const char* use[] |
| int verbose |