 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
27 "Usage: radonrecon [options] input.star [input.star]",
28 "---------------------------------------------------",
29 "Program to reconstruct a quarter (PI*PI) radon transform from projections.",
30 "Projections must be square.",
33 "-verbose 7 Verbosity of output",
34 "-datatype u Force writing of a new data type (default output floating point)",
35 "-origin 32,32 Projections origin (default center of projections)",
36 "-sampling 1.5,1.5,1.5 Sampling (A/pixel; a single value can be given).",
37 "-kernel 15,4 Kernel size and power (default 11,2)",
38 "-threshold 19.4 Threshold for accepting a particle image (default 0)",
39 "-symmetry D5 Number of symmetry equivalents (default 1)",
42 "-output file.star Output parameter file.",
43 "-reconstruction rec.map Reconstruction file name.",
44 "-mask mask.map Binary mask for POCS filter.",
50 main (
int argc,
char **argv)
71 for (curropt = option; curropt; curropt = curropt->
next)
73 if ( curropt->
tag ==
"datatype" )
75 if ( curropt->
tag ==
"origin" )
76 origin = curropt->
origin();
77 if ( curropt->
tag ==
"sampling" )
78 sampling = curropt->
scale();
79 if ( curropt->
tag ==
"kernel" )
80 if ( curropt->
values(nkernel, kernel_power) < 1)
81 cerr <<
"-kernel: At least the kernel size must be specified!" << endl;
82 if ( curropt->
tag ==
"threshold" )
83 if ( ( threshold = curropt->
value.
real() ) < 1e-30)
84 cerr <<
"-threshold: The threshold must be specified!" << endl;
85 if ( curropt->
tag ==
"symmetry" )
87 if ( curropt->
tag ==
"reconstruction" )
89 if ( curropt->
tag ==
"output" )
91 if ( curropt->
tag ==
"mask" )
98 while ( optind < argc )
string_add(&file_list, argv[optind++]);
100 cerr <<
"Error: No parameter files specified!" << endl;
108 cerr <<
"Error: No input file read!" << endl;
115 if (sampling[0] < 0.1)
122 if (prec && reconsfile.
length())
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.
Bimage * img_radon_reconstruction(Bproject *project, Bsymmetry *sym, Bstring &file_mask, int rec_size, int ntheta, int table_size, double threshold, Vector3< double > origin, int nkernel, int kernel_power)
Reconstructs a Radon transform from a set of projections.
Header file for general symmetry functions.
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.
Vector3< double > origin()
long values(T1 &v1, T2 &v2)
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 write_img(const char *filename, Bimage *p, int compression)
General driver function to write multiple image formats.
int main(int argc, char **argv)
General image parameter class.
Bproject * read_project(const char *filename, int flags=0)
Reading micrograph parameters from files.
Header file for general utilities.
void change_type(char letter)
Get the data type indicated by a single letter code.
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.
int kill_symmetry(Bsymmetry *sym)
Deallocates a symmetry structure.
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.
long statistics()
Calculates the statistics for an image.