24 "Usage: bmaskmod [options] mask.tif",
25 "----------------------------------",
26 "Generates a model from a mask.",
33 "-verbose 7 Verbose output.",
34 "-componentradius 8.4 Set display radius for all components.",
35 "-linkradius 5.1 Set display radius for all links.",
41 "-output file.star Output model file.",
46 int main(
int argc,
char **argv)
56 for ( curropt = option; curropt; curropt = curropt->
next ) {
57 if ( curropt->
tag ==
"componentradius" )
58 if ( ( comprad = curropt->
value.
real() ) < 1 )
59 cerr <<
"-componentradius: A radius must be specified!" << endl;
60 if ( curropt->
tag ==
"linkradius" )
61 if ( ( linkrad = curropt->
value.
real() ) < 1 )
62 cerr <<
"-linkradius: A radius must be specified!" << endl;
63 if ( curropt->
tag ==
"output" )
Bmodel * model_from_multilevel_mask(Bimage *p)
Generates components at the center of mass of each mask level.
long model_set_component_radius(Bmodel *model, double comprad)
Set the display radius for all components to a specific value.
int main(int argc, char **argv)
Header file for general utilities.
Library routines used for model processing.
Library routines used for model link processing.
Boption * get_option_list(const char *use[], int argc, char *argv[], int &optind)
Parses command line arguments based on a template.
Bimage * read_img(char *filename, int readdata, int img_select)
General driver function to read multiple image formats.
Utilities for timing functions.
General image parameter class.
int model_kill(Bmodel *model)
Deallocates all memory in the list.
long model_set_link_radius(Bmodel *model, double linkrad)
Set the display radius for all links to a specific value.
A class for a command line input option.
int model_update_comment(Bmodel *model, int n, char **strings)
Puts a set of strings and time in the comment of a model.
int write_model(Bstring &filename, Bmodel *model)
Writes model parameters.
Header file for reading and writing atomic model files.
double timer_report(double lasttime)
Reports the time elapsed since a given time.
Functions to generate masks from models.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
Header file for 2D and 3D image I/O.
Header file for option handlers.
long models_process(Bmodel *model, long(modfunc)(Bmodel *))
Process a list of models using the specified function.
int bexit(int value)
Exit function for cleanup and debugging.
double timer_start()
Starts timer and prints the time.