 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
22 "Usage: bmgft [options] input.star [input2.star]",
23 "-----------------------------------------------",
24 "Fourier transforms micrographs from a tomographic tilt series.",
27 "-removemarkers 14 Mask out markers with this radius (pixels) before transformation.",
30 "-verbose 7 Verbosity of output.",
31 "-datatype u Force writing of a new data type.",
32 "-select 23,45,66 Micrograph selection (default all).",
33 "-size 1024,1024,200 Intended reconstruction size (default from micrograph).",
34 "-scale 0.5 Scale of intended reconstruction (default 1).",
35 "-pad 3 Image padding factor (default 2).",
36 "-fill 127 Fill value for erasing/painting markers (default average).",
39 "-output file.star Output STAR file name.",
44 int main(
int argc,
char **argv)
46 double marker_radius(0);
59 for ( curropt = option; curropt; curropt = curropt->
next ) {
60 if ( curropt->
tag ==
"removemarkers" )
61 if ( ( marker_radius = curropt->
value.
real() ) < 1 )
62 cerr <<
"-removemarkers: A marker radius must be specified!" << endl;
63 if ( curropt->
tag ==
"datatype" )
65 if ( curropt->
tag ==
"select" )
66 mg_select = curropt->
value;
67 if ( curropt->
tag ==
"size" )
68 size = curropt->
size();
69 if ( curropt->
tag ==
"scale" )
70 if ( ( scale = curropt->
value.
real() ) < 0.0001 )
71 cerr <<
"-scale: A scale must be specified!" << endl;
72 if ( curropt->
tag ==
"pad" )
74 cerr <<
"-pad: An integer factor must be specified!" << endl;
75 if ( curropt->
tag ==
"fill" )
76 fill = curropt->
fill(fill_type);
77 if ( curropt->
tag ==
"output" )
86 while ( optind < argc )
string_add(&file_list, argv[optind++]);
88 cerr <<
"Error: No parameter files specified!" << endl;
96 cerr <<
"Error: No input file read!" << endl;
103 nudatatype, marker_radius, fill_type, fill);
A class for a command line input option.
int project_kill(Bproject *project)
Frees a whole project.
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.
Header file for reading and writing micrograph parameters.
Utilities for timing functions.
int main(int argc, char **argv)
long project_mg_select(Bproject *project, Bstring &mg_select)
Selects micrographs in a project hierarchy.
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 fill(int &fill_type)
double timer_report(double lasttime)
Reports the time elapsed since a given time.
Functions to do a tomographic reconstruction.
int write_project(const char *filename, Bproject *project)
Writing micrograph parameters to a file.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
DataType
Base data type specifier.
Bstring * string_add(Bstring **list, const char *string)
Adds a string to a linked list.
Header file for single particle image processing in Bsoft.
int mg_fft_write(Bproject *project, Vector3< int > size, double scale, int pad_factor, DataType datatype, double marker_radius, int fill_type, double fill)
Fourier transform micrographs and write to disk.