![]() |
Bsoft 2.1.4
Bernard's software package
|
Header file for micrograph processing. More...
#include "ctf.h"
#include "symmetry.h"
#include "marker.h"
#include "View.h"
#include "Euler.h"
#include "Bstring.h"
Functions | |
Bfield * | field_find_id (Bfield *field, Bstring &field_id) |
Finds a field-of-view based on its identifier. More... | |
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 characteristic of that micrograph. More... | |
Bmicrograph * | field_find_micrograph_n (Bfield *field, int n) |
Returns a pointer to the nth micrograph in a field-of-view structure. More... | |
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 iteration index. More... | |
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 rotational angle. More... | |
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. More... | |
Bmicrograph * | field_find_zero_tilt_mg (Bfield *field) |
Finds the micrograph closest to a zero degree tilt in a series. More... | |
Bmicrograph * | field_find_low_tilt_mg_with_markers (Bfield *field) |
Finds the micrograph closest to a zero degree tilt in a series with markers. More... | |
long | project_count_fields (Bproject *project) |
Counts all the fields in the project structure. More... | |
long | project_count_micrographs (Bproject *project) |
Counts all the micrographs in the project structure. More... | |
long | project_count_mg_selected (Bproject *project) |
Counts all the selected micrographs in the project structure. More... | |
long | project_count_reconstructions (Bproject *project) |
Counts all the reconstructions in the project structure. More... | |
long | project_count_rec_selected (Bproject *project) |
Counts all the selected reconstructions in the project structure. More... | |
long | project_count_mg_particles (Bproject *project) |
Counts all the particles in the project structure. More... | |
long | project_count_mg_part_selected (Bproject *project) |
Counts the number of particles in a project. More... | |
long | project_count_mg_part_selected (Bproject *project, int num_select) |
Counts the number of particles in a project. More... | |
long | project_count_mg_groups (Bproject *project) |
Counts the number of groups of particles in the project structure. More... | |
long | project_count_mg_groups_selected (Bproject *project) |
Counts the number of groups of particles in the project structure. More... | |
long | project_count_rec_particles (Bproject *project) |
Counts all the particles in the project structure. More... | |
long | project_count_rec_part_selected (Bproject *project) |
Counts all the particles in the project structure. More... | |
long | project_count_rec_groups (Bproject *project) |
Counts all the particles in the project structure. More... | |
long | project_count_mg_filaments (Bproject *project) |
Counts the number of filaments in a project. More... | |
long | project_count_mg_filament_nodes (Bproject *project) |
Counts the number of filament nodes in a project. More... | |
long | project_count_rec_filaments (Bproject *project) |
Counts the number of filaments in a project. More... | |
long | project_count_rec_filament_nodes (Bproject *project) |
Counts the number of filaments in a project. More... | |
long | field_count (Bfield *field) |
Counts the number of fields-of-view in a linked list. More... | |
long | field_count_micrographs (Bfield *field) |
Counts all the micrographs in the field-of-view structure. More... | |
long | field_count_mg_selected (Bfield *field) |
Counts all the micrographs in the field-of-view structure. More... | |
long | field_count_particles (Bfield *field) |
Counts all the particles in the field-of-view structure. More... | |
long | micrograph_count (Bmicrograph *mg) |
Counts the number of micrographs in a linked list. More... | |
long | micrograph_count_particles (Bmicrograph *mg) |
Counts all the particles in the micrograph structure. More... | |
long | particle_count (Bparticle *part) |
Counts the number of particles in a linked list. More... | |
long | particle_count_selected (Bparticle *part) |
Counts the number of particles in a linked list. More... | |
long | filament_count (Bfilament *fil) |
Counts the number of filaments in a linked list of filaments. More... | |
long | filament_node_count (Bfilament *fil) |
Counts the number of filament nodes in a linked list of filaments. More... | |
long | project_maximum_selection (Bproject *project) |
Finds the maximum selection number for a project. More... | |
long | project_show_selection_numbers (Bproject *project) |
Shows the selection numbers for the particles in a project. More... | |
long | project_show_selected (Bproject *project) |
Shows the selected particles in a project. More... | |
long | project_show_selected_parameters (Bproject *project, int show) |
Shows the selected particle parameters in a project. More... | |
long | project_show_mg_parameter (Bproject *project, Bstring &tag) |
Shows the micrograph parameter indicated by the tag in a project. More... | |
long | project_show_part_parameter (Bproject *project, Bstring &tag) |
Shows the particle parameter indicated by the tag in a project. More... | |
long | project_show_fom_histogram (Bproject *project, long bins, double min, double max) |
Shows a histogram of the FOM values. More... | |
long | project_show_mag_histogram (Bproject *project, long bins, double increment) |
Shows the histogram for magnification values for selected particles. More... | |
int | project_select_field (Bproject *project, Bstring &field_id) |
Selects a field from the project and deletes the rest. More... | |
int | project_select_micrograph (Bproject *project, Bstring &mg_id) |
Selects a micrograph from the project and deletes the rest. More... | |
long | project_select_with_particles (Bproject *project, long part_sel) |
Selects micrographs with particles. More... | |
vector< pair< Bmicrograph *, double > > | project_mg_sort (Bproject *project, Bstring tag) |
Sorts the micrographs by a selected parameter. More... | |
Header file for micrograph processing.
long field_count | ( | Bfield * | field | ) |
Counts the number of fields-of-view in a linked list.
The function counts fields-of-view in the list from the given pointer, and does not count fields-of-view prior to this one.
*field | pointer to any field-of-view in the list. |
long field_count_mg_selected | ( | Bfield * | field | ) |
Counts all the micrographs in the field-of-view structure.
*field | field-of-view parameter structure. |
long field_count_micrographs | ( | Bfield * | field | ) |
Counts all the micrographs in the field-of-view structure.
*field | field-of-view parameter structure. |
long field_count_particles | ( | Bfield * | field | ) |
Counts all the particles in the field-of-view structure.
*field | field-of-view parameter structure. |
Finds a field-of-view based on its identifier.
*field | pointer to first field-of-view in the list. |
&field_id | field-of-view identifier. |
The function searches a linked list for the field-of-view identifier and returns a pointer to that structure or NULL if it cannot find it.
Bmicrograph * field_find_low_tilt_mg_with_markers | ( | Bfield * | field | ) |
Finds the micrograph closest to a zero degree tilt in a series with markers.
*field | field-of-view. |
The first micrograph with the smallest deviation from zero degree tilt with defined markers is returned.
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 characteristic of that micrograph.
*field | field-of-view. |
mg_select | selection criterion. |
mg_index | Reference by its index in field (for mg_ref_select=0|1|2). |
mg_ang | Reference by micrograph rotation or tilt angle (for mg_ref_select=3|4). |
Calls functions that find a micrograph by index number within the field, by focus level, in-plane rotational angle, tilt angle, or tilt angle plus focus level or index number: criterion mg_select mg_index mg_ang -------------------------------------------------------------- nth closest-to-focus 0 n - nth farthest-from-focus 1 n - index number in series (1...n) 2 index - in-plane rotation angle 3 - angle tilt angle 4 - angle
Bmicrograph * field_find_micrograph_by_focus | ( | Bfield * | field, |
int | focus_opt, | ||
int | iselect | ||
) |
Returns a pointer to the micrograph in a field-of-view structure based on the focus level and iteration index.
*field | a field-of-view structure |
focus_opt | 0=closest-to-focus, 1=farthest-from-focus |
iselect | 0,1,...,n; select (index+1)th-closest or (index+1)th-farthest focus |
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 rotational angle.
*field | a field-of-view |
rotang | in-plane rotational angle of micrograph (in radians) |
Loop through all micrographs in the field-of-view to find micrograph with the specified angle. Test if there are zero or multiple micrographs with the same rotational angle, halt program if true. If not true, then return pointer to the micrograph with the specified angle.
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.
*field | a field-of-view |
tiltang | tilt angle of micrograph (in radians) |
Loop through all micrographs in the field-of-view to find micrograph with the specified tilt angle. Test if there are zero or multiple micrographs with the same angle, halt program if true. If not true, then return pointer to the micrograph with the specified angle.
Bmicrograph * field_find_micrograph_n | ( | Bfield * | field, |
int | n | ||
) |
Returns a pointer to the nth micrograph in a field-of-view structure.
*field | a field-of-view |
n | nth micrograph index (first index number = 1) |
Loop through micrographs in the field-of-view until the nth micrograph is reached. Return pointer to that micrograph. Tests whether n is within the appropriate range.
Bmicrograph * field_find_zero_tilt_mg | ( | Bfield * | field | ) |
Finds the micrograph closest to a zero degree tilt in a series.
*field | field-of-view. |
The first micrograph with the smallest deviation from zero degree tilt is returned.
long filament_count | ( | Bfilament * | fil | ) |
Counts the number of filaments in a linked list of filaments.
The function counts filaments in the list from the given pointer, and does not count filaments prior to this one.
*fil | pointer to any filament in the list. |
long filament_node_count | ( | Bfilament * | fil | ) |
Counts the number of filament nodes in a linked list of filaments.
The function counts filament nodes in the list from the given pointer, and does not count filaments prior to this one.
*fil | pointer to any filament in the list. |
long micrograph_count | ( | Bmicrograph * | mg | ) |
Counts the number of micrographs in a linked list.
The function counts micrographs in the list from the given pointer, and does not count micrographs prior to this one.
*mg | pointer to any micrograph in the list. |
long micrograph_count_particles | ( | Bmicrograph * | mg | ) |
Counts all the particles in the micrograph structure.
*mg | micrograph parameter structure. |
long particle_count | ( | Bparticle * | part | ) |
Counts the number of particles in a linked list.
The function counts particles in the list from the given pointer, and does not count particles prior to this one.
*part | pointer to any particle in the list. |
long particle_count_selected | ( | Bparticle * | part | ) |
Counts the number of particles in a linked list.
The function counts particles in the list from the given pointer, and does not count particles prior to this one.
*part | pointer to any particle in the list. |
long project_count_fields | ( | Bproject * | project | ) |
Counts all the fields in the project structure.
*project | project parameter structure. |
long project_count_mg_filament_nodes | ( | Bproject * | project | ) |
Counts the number of filament nodes in a project.
*project | project. |
The function counts all the filament nodes in a project.
long project_count_mg_filaments | ( | Bproject * | project | ) |
Counts the number of filaments in a project.
*project | project. |
The function counts all the filaments in a project.
long project_count_mg_groups | ( | Bproject * | project | ) |
Counts the number of groups of particles in the project structure.
*project | project parameter structure. |
long project_count_mg_groups_selected | ( | Bproject * | project | ) |
Counts the number of groups of particles in the project structure.
*project | project parameter structure. |
long project_count_mg_part_selected | ( | Bproject * | project | ) |
Counts the number of particles in a project.
*project | project. |
The function counts all the selected particles in a project.
long project_count_mg_part_selected | ( | Bproject * | project, |
int | num_select | ||
) |
Counts the number of particles in a project.
*project | project. |
num_select | selection number. |
The function counts all the selected particles in a project.
long project_count_mg_particles | ( | Bproject * | project | ) |
Counts all the particles in the project structure.
*project | project parameter structure. |
long project_count_mg_selected | ( | Bproject * | project | ) |
Counts all the selected micrographs in the project structure.
*project | project parameter structure. |
long project_count_micrographs | ( | Bproject * | project | ) |
Counts all the micrographs in the project structure.
*project | project parameter structure. |
long project_count_rec_filament_nodes | ( | Bproject * | project | ) |
Counts the number of filaments in a project.
The function counts all the filaments in a project.
*project | project. |
long project_count_rec_filaments | ( | Bproject * | project | ) |
Counts the number of filaments in a project.
*project | project. |
The function counts all the filaments in a project.
long project_count_rec_groups | ( | Bproject * | project | ) |
Counts all the particles in the project structure.
*project | project parameter structure. |
long project_count_rec_part_selected | ( | Bproject * | project | ) |
Counts all the particles in the project structure.
*project | project parameter structure. |
long project_count_rec_particles | ( | Bproject * | project | ) |
Counts all the particles in the project structure.
*project | project parameter structure. |
long project_count_rec_selected | ( | Bproject * | project | ) |
Counts all the selected reconstructions in the project structure.
*project | project parameter structure. |
long project_count_reconstructions | ( | Bproject * | project | ) |
Counts all the reconstructions in the project structure.
*project | project parameter structure. |
long project_maximum_selection | ( | Bproject * | project | ) |
Finds the maximum selection number for a project.
*project | project parameter structure. |
vector< pair< Bmicrograph *, double > > project_mg_sort | ( | Bproject * | project, |
Bstring | tag | ||
) |
Sorts the micrographs by a selected parameter.
*project | project parameter structure. |
tag | parameter tag. |
Selects a field from the project and deletes the rest.
*project | project parameter structure. |
&field_id | field to select. |
Selects a micrograph from the project and deletes the rest.
*project | project parameter structure. |
&mg_id | micrograph to select. |
long project_select_with_particles | ( | Bproject * | project, |
long | part_sel | ||
) |
Selects micrographs with particles.
*project | project parameter structure. |
part_sel | flag to select only with this selection number |
long project_show_fom_histogram | ( | Bproject * | project, |
long | bins, | ||
double | min, | ||
double | max | ||
) |
Shows a histogram of the FOM values.
*project | project parameter structure. |
bins | number of bins, if 0, set to 100. |
min | FOM for the first bin. |
max | FOM for the last bin. |
long project_show_mag_histogram | ( | Bproject * | project, |
long | bins, | ||
double | increment | ||
) |
Shows the histogram for magnification values for selected particles.
*project | project parameter structure. |
bins | number of bins. |
increment | increment between bins. |
Shows the micrograph parameter indicated by the tag in a project.
*project | project parameter structure. |
&tag | parameter tag. |
Shows the particle parameter indicated by the tag in a project.
*project | project parameter structure. |
&tag | parameter tag. |
long project_show_selected | ( | Bproject * | project | ) |
Shows the selected particles in a project.
*project | project parameter structure. |
long project_show_selected_parameters | ( | Bproject * | project, |
int | show | ||
) |
Shows the selected particle parameters in a project.
*project | project parameter structure. |
show | selection number to show. |
long project_show_selection_numbers | ( | Bproject * | project | ) |
Shows the selection numbers for the particles in a project.
*project | project parameter structure. |