Bsoft  2.1.0
Bernard's software package
mg_select.h
Go to the documentation of this file.
1 
9 #include "ctf.h"
10 #include "symmetry.h"
11 #include "marker.h"
12 #include "View.h"
13 #include "Euler.h"
14 #include "Bstring.h"
15 
16 // Function prototypes
17 Bfield* field_find_id(Bfield* field, Bstring& field_id);
18 Bmicrograph* field_find_micrograph(Bfield* field, int mg_select, int mg_index, double mg_ang);
20 Bmicrograph* field_find_micrograph_by_focus(Bfield* field, int focus_opt, int index);
21 Bmicrograph* field_find_micrograph_by_rotang(Bfield* field, double rotang);
22 Bmicrograph* field_find_micrograph_by_tiltang(Bfield* field, double tiltang);
32 long project_count_mg_part_selected(Bproject* project, int num_select);
41 long field_count(Bfield* field);
42 long field_count_micrographs(Bfield* field);
43 long field_count_mg_selected(Bfield* field);
44 long field_count_particles(Bfield* field);
47 long particle_count(Bparticle* part);
49 long filament_count(Bfilament* fil);
58  double min, double max);
59 long project_show_mag_histogram(Bproject* project, long bins, double increment);
62 long project_select_with_particles(Bproject* project, long part_sel);
63 vector<pair<Bmicrograph*,double>> project_mg_sort(Bproject* project, Bstring tag);
field_find_low_tilt_mg_with_markers
Bmicrograph * field_find_low_tilt_mg_with_markers(Bfield *field)
Finds the micrograph closest to a zero degree tilt in a series with markers.
Definition: mg_select.cpp:312
project_count_mg_particles
long project_count_mg_particles(Bproject *project)
Counts all the particles in the project structure.
Definition: mg_select.cpp:415
field_find_micrograph_n
Bmicrograph * field_find_micrograph_n(Bfield *field, int n)
Returns a pointer to the nth micrograph in a field-of-view structure.
Definition: mg_select.cpp:104
Bmicrograph
Definition: mg_processing.h:201
field_count_micrographs
long field_count_micrographs(Bfield *field)
Counts all the micrographs in the field-of-view structure.
Definition: mg_select.cpp:671
field_find_micrograph
Bmicrograph * field_find_micrograph(Bfield *field, int mg_select, int mg_index, double mg_ang)
Returns a pointer to a specific micrograph in a field-of-view structure based on a unique characteris...
Definition: mg_select.cpp:64
project_show_selected_parameters
long project_show_selected_parameters(Bproject *project, int show)
Shows the selected particle parameters in a project.
Definition: mg_select.cpp:1098
filament_node_count
long filament_node_count(Bfilament *fil)
Counts the number of filament nodes in a linked list of filaments.
Definition: mg_select.cpp:809
Bfilament
Definition: mg_processing.h:129
Bstring
Definition: Bstring.h:29
project_count_mg_groups
long project_count_mg_groups(Bproject *project)
Counts the number of groups of particles in the project structure.
Definition: mg_select.cpp:483
project_count_fields
long project_count_fields(Bproject *project)
Counts all the fields in the project structure.
Definition: mg_select.cpp:335
Bparticle
Definition: mg_processing.h:90
particle_count_selected
long particle_count_selected(Bparticle *part)
Counts the number of particles in a linked list.
Definition: mg_select.cpp:773
project_count_rec_filaments
long project_count_rec_filaments(Bproject *project)
Counts the number of filaments in a project.
Definition: mg_select.cpp:612
symmetry.h
Header file for general symmetry functions.
project_count_reconstructions
long project_count_reconstructions(Bproject *project)
Counts all the reconstructions in the project structure.
Definition: mg_select.cpp:384
micrograph_count_particles
long micrograph_count_particles(Bmicrograph *mg)
Counts all the particles in the micrograph structure.
Definition: mg_select.cpp:736
field_count_particles
long field_count_particles(Bfield *field)
Counts all the particles in the field-of-view structure.
Definition: mg_select.cpp:701
field_count
long field_count(Bfield *field)
Counts the number of fields-of-view in a linked list.
Definition: mg_select.cpp:657
Bfield
Definition: mg_processing.h:260
project_maximum_selection
long project_maximum_selection(Bproject *project)
Finds the maximum selection number for a project.
Definition: mg_select.cpp:825
marker.h
Header file for image parameter functions.
project
Bproject * project
Definition: bshow.cpp:33
project_show_selected
long project_show_selected(Bproject *project)
Shows the selected particles in a project.
Definition: mg_select.cpp:907
project_show_mag_histogram
long project_show_mag_histogram(Bproject *project, long bins, double increment)
Shows the histogram for magnification values for selected particles.
Definition: mg_select.cpp:1422
project_count_mg_selected
long project_count_mg_selected(Bproject *project)
Counts all the selected micrographs in the project structure.
Definition: mg_select.cpp:367
project_count_mg_part_selected
long project_count_mg_part_selected(Bproject *project)
Counts the number of particles in a project.
Definition: mg_select.cpp:437
project_show_fom_histogram
long project_show_fom_histogram(Bproject *project, long bins, double min, double max)
Shows a histogram of the FOM values.
Definition: mg_select.cpp:1319
field_find_micrograph_by_rotang
Bmicrograph * field_find_micrograph_by_rotang(Bfield *field, double rotang)
Returns a pointer to the micrograph in a field-of-view structure with the specified in-plane rotation...
Definition: mg_select.cpp:199
ctf.h
Header file for CTF (contrast transfer function) functions.
project_count_rec_selected
long project_count_rec_selected(Bproject *project)
Counts all the selected reconstructions in the project structure.
Definition: mg_select.cpp:399
Bproject
Definition: mg_processing.h:336
show
int show(0)
field_count_mg_selected
long field_count_mg_selected(Bfield *field)
Counts all the micrographs in the field-of-view structure.
Definition: mg_select.cpp:686
project_show_selection_numbers
long project_show_selection_numbers(Bproject *project)
Shows the selection numbers for the particles in a project.
Definition: mg_select.cpp:852
Bstring.h
Header file for the string class.
project_show_part_parameter
long project_show_part_parameter(Bproject *project, Bstring &tag)
Shows the particle parameter indicated by the tag in a project.
Definition: mg_select.cpp:1268
field_find_micrograph_by_tiltang
Bmicrograph * field_find_micrograph_by_tiltang(Bfield *field, double tiltang)
Returns a pointer to the micrograph in a field-of-view structure with the specified tilt angle.
Definition: mg_select.cpp:243
project_select_field
int project_select_field(Bproject *project, Bstring &field_id)
Selects a field from the project and deletes the rest.
Definition: mg_select.cpp:1468
field_find_micrograph_by_focus
Bmicrograph * field_find_micrograph_by_focus(Bfield *field, int focus_opt, int index)
Returns a pointer to the micrograph in a field-of-view structure based on the focus level and iterati...
Definition: mg_select.cpp:142
field_find_zero_tilt_mg
Bmicrograph * field_find_zero_tilt_mg(Bfield *field)
Finds the micrograph closest to a zero degree tilt in a series.
Definition: mg_select.cpp:281
project_count_rec_groups
long project_count_rec_groups(Bproject *project)
Counts all the particles in the project structure.
Definition: mg_select.cpp:541
project_select_micrograph
int project_select_micrograph(Bproject *project, Bstring &mg_id)
Selects a micrograph from the project and deletes the rest.
Definition: mg_select.cpp:1500
project_count_rec_part_selected
long project_count_rec_part_selected(Bproject *project)
Counts all the particles in the project structure.
Definition: mg_select.cpp:523
micrograph_count
long micrograph_count(Bmicrograph *mg)
Counts the number of micrographs in a linked list.
Definition: mg_select.cpp:722
View.h
View object.
project_show_mg_parameter
long project_show_mg_parameter(Bproject *project, Bstring &tag)
Shows the micrograph parameter indicated by the tag in a project.
Definition: mg_select.cpp:1240
field_find_id
Bfield * field_find_id(Bfield *field, Bstring &field_id)
Finds a field-of-view based on its identifier.
Definition: mg_select.cpp:33
project_mg_sort
vector< pair< Bmicrograph *, double > > project_mg_sort(Bproject *project, Bstring tag)
Sorts the micrographs by a selected parameter.
Definition: mg_select.cpp:1631
project_select_with_particles
long project_select_with_particles(Bproject *project, long part_sel)
Selects micrographs with particles.
Definition: mg_select.cpp:1541
filament_count
long filament_count(Bfilament *fil)
Counts the number of filaments in a linked list of filaments.
Definition: mg_select.cpp:791
project_count_mg_filaments
long project_count_mg_filaments(Bproject *project)
Counts the number of filaments in a project.
Definition: mg_select.cpp:564
Euler.h
Euler object.
particle_count
long particle_count(Bparticle *part)
Counts the number of particles in a linked list.
Definition: mg_select.cpp:755
project_count_micrographs
long project_count_micrographs(Bproject *project)
Counts all the micrographs in the project structure.
Definition: mg_select.cpp:350
project_count_rec_filament_nodes
long project_count_rec_filament_nodes(Bproject *project)
Counts the number of filaments in a project.
Definition: mg_select.cpp:633
project_count_rec_particles
long project_count_rec_particles(Bproject *project)
Counts all the particles in the project structure.
Definition: mg_select.cpp:506
project_count_mg_filament_nodes
long project_count_mg_filament_nodes(Bproject *project)
Counts the number of filament nodes in a project.
Definition: mg_select.cpp:587