 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
29 "Usage: bmg2imod [options] input.mrc input.xf input.tlt input.xyz",
30 "----------------------------------------------------------------",
31 "Converts between IMOD files and a micrograph parameter file.",
34 "-topif Flag to convert the image file to multi-image PIF (default not).",
37 "-verbose 7 Verbosity of output.",
38 "-sampling 1.5 Sampling (A/pixel).",
41 "-output file.star Output micrograph parameter file.",
42 "-imod file.xf Output IMOD parameter files.",
48 int main(
int argc,
char** argv)
59 for ( curropt = option; curropt; curropt = curropt->
next ) {
60 if ( curropt->
tag ==
"topif" ) flag = 1;
61 if ( curropt->
tag ==
"sampling" )
62 sam = curropt->
scale();
63 if ( curropt->
tag ==
"output" )
65 if ( curropt->
tag ==
"imod" )
74 while ( optind < argc )
string_add(&file_list, argv[optind++]);
76 cerr <<
"Error: No parameter files specified!" << endl;
85 cerr <<
"Error: No project generated!" << endl;
A class for a command line input option.
int project_kill(Bproject *project)
Frees a whole project.
Vector3< double > scale()
int string_kill(Bstring *list)
Kills a string linked list.
int bexit(int value)
Exit function for cleanup and debugging.
Boption * get_option_list(const char *use[], int argc, char *argv[], int &optind)
Parses command line arguments based on a template.
Header file for option handlers.
Converts between IMOD files and a micrograph parameter file.
Header file for reading and writing micrograph parameters.
int project_set_mg_pixel_size(Bproject *project, Vector3< double > pixel_size)
Sets the pixel size for all the micrographs.
int main(int argc, char **argv)
Utilities for timing functions.
Header file for image processing from micrograph structures.
double timer_start()
Starts timer and prints the time.
Bproject * read_project(const char *filename, int flags=0)
Reading micrograph parameters from files.
Header file for general utilities.
double timer_report(double lasttime)
Reports the time elapsed since a given time.
Header file for 2D and 3D image I/O.
int write_project(const char *filename, Bproject *project)
Writing micrograph parameters to a file.
Header file for micrograph processing.
Header file for generalized linked list functions.
int write_project_imod(Bstring &imodfile, Bproject *project)
Creates IMOD parameter files from a project structure.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
int write_IMOD_parameters(Bstring &imodfile, Bproject *project)
Bstring * string_add(Bstring **list, const char *string)
Adds a string to a linked list.
Header file for single particle image processing in Bsoft.