|
Bsoft
2.1.0
Bernard's software package
|
Manipulates single particle images. More...
#include "rwimg.h"Go to the source code of this file.
Functions | |
| int | project_align_particles (Bproject *project, int part_select, double nuavg, double nustd) |
| Aligns single particle images based on orientation parameters. More... | |
| int | project_center_particles (Bproject *project, int part_select, double nuavg, double nustd) |
| Centers single particle images based on the parametric center. More... | |
| int | project_set_particle_centers (Bproject *project, Bimage *pref, int part_select, double hires, double lores) |
| Calculates centers of single particle images by cross-correlation with a reference. More... | |
| long | project_find_part_centers_in_mgs (Bproject *project, double hires, double lores, int filter_flag) |
| Finds the centers of picked particles within a micrograph. More... | |
| long | mg_find_part_centers (Bmicrograph *mg, double hires, double lores, int filter_flag) |
| Finds the centers of picked particles within a micrograph. More... | |
| Bimage * | project_find_particle_centers (Bproject *project, int max_iter, int part_select, double hires, double lores) |
| Calculates centers of single particle images. More... | |
| long | project_mask_particles (Bproject *project, Bimage *pmask, Bstring &partpath) |
| Calculates centers of single particle images. More... | |
| long | project_compare_particles (Bproject *project, Bproject *projcomp) |
| Compares the coordinates of particles between two files. More... | |
| double | project_tilt_from_particle_defocus (Bproject *project) |
| Finds the tilt axis from refined particle defocus values. More... | |
| long | project_set_particle_defocus_from_tilt (Bproject *project, double axis, double tilt) |
| Finds the tilt axis from refined particle defocus values. More... | |
Manipulates single particle images.
Definition in file mg_particles.h.
| long mg_find_part_centers | ( | Bmicrograph * | mg, |
| double | hires, | ||
| double | lores, | ||
| int | filter_flag | ||
| ) |
Finds the centers of picked particles within a micrograph.
| *mg | micrograph parameter structure. |
| hires | high resolution limit. |
| lores | low resolution limit. |
| filter_flag | flag to filter extremes in particles. |
An image processing parameter structure loaded with micrograph information is used to extract particle images from the micrograph image using the particle coordinates in the parameter structure. The extracted particle images are each rotated by PI and the shift found by cross-correlation between the unrotated and rotated images. The particle coordinates in the parameter structure are updated with the shift.
Definition at line 357 of file mg_particles.cpp.
| int project_align_particles | ( | Bproject * | project, |
| int | part_select, | ||
| double | nuavg, | ||
| double | nustd | ||
| ) |
Aligns single particle images based on orientation parameters.
| *project | micrograph processing parameter structure. |
| part_select | selection number from the selection column. |
| nuavg | rescale to new average. |
| nustd | rescale to new standard deviation. |
Each selected particle image is rotated and shifted.
Definition at line 36 of file mg_particles.cpp.
| int project_center_particles | ( | Bproject * | project, |
| int | part_select, | ||
| double | nuavg, | ||
| double | nustd | ||
| ) |
Centers single particle images based on the parametric center.
| *project | micrograph processing parameter structure. |
| part_select | selection number from the selection column. |
| nuavg | rescale to new average. |
| nustd | rescale to new standard deviation. |
Each particle image is shifted to center the origin.
Definition at line 138 of file mg_particles.cpp.
Compares the coordinates of particles between two files.
| *project | project parameter structure. |
| *projcomp | comparable project parameter structure. |
The coordinates of particles in one parameter file is compared to that of a reference parameter file. The two parameter files must have the same field and micrograph ID's.
Definition at line 653 of file mg_particles.cpp.
| long project_find_part_centers_in_mgs | ( | Bproject * | project, |
| double | hires, | ||
| double | lores, | ||
| int | filter_flag | ||
| ) |
Finds the centers of picked particles within a micrograph.
| *project | project parameter structure. |
| hires | high resolution limit. |
| lores | low resolution limit. |
| filter_flag | flag to filter extremes in particles. |
An image processing parameter structure loaded with micrograph information is used to extract particle images from the micrograph image using the particle coordinates in the parameter structure. The extracted particle images are each rotated by PI and the shift found by cross-correlation between the unrotated and rotated images. The particle coordinates in the parameter structure are updated with the shift.
Definition at line 322 of file mg_particles.cpp.
| Bimage* project_find_particle_centers | ( | Bproject * | project, |
| int | max_iter, | ||
| int | part_select, | ||
| double | hires, | ||
| double | lores | ||
| ) |
Calculates centers of single particle images.
| *project | image processing parameter structure. |
| max_iter | maximum number of iterations. |
| part_select | selection number from the selection column. |
| hires | high resolution limit. |
| lores | low resolution limit. |
A composite image is generated from the selected particles and radially symmetrized. Each image shift is then determined by cross correlation. This is repeated until the chnage in image shifts decreases below a threshold.
Definition at line 411 of file mg_particles.cpp.
Calculates centers of single particle images.
| *project | image processing parameter structure. |
| *pmask | 3D volume mask to be projected. |
| &partpath | new path to particle files. |
A 3D mask is projected into each particle view and the particle image masked.
Definition at line 582 of file mg_particles.cpp.
| int project_set_particle_centers | ( | Bproject * | project, |
| Bimage * | pref, | ||
| int | part_select, | ||
| double | hires, | ||
| double | lores | ||
| ) |
Calculates centers of single particle images by cross-correlation with a reference.
| *project | micrograph processing parameter structure. |
| *pref | reference image. |
| part_select | selection number from the selection column. |
| hires | high resolution limit. |
| lores | low resolution limit. |
Each particle image shift is determined by cross correlation with the reference image. The reference must be the same size as the particle images.
Definition at line 263 of file mg_particles.cpp.
| long project_set_particle_defocus_from_tilt | ( | Bproject * | project, |
| double | axis, | ||
| double | tilt | ||
| ) |
Finds the tilt axis from refined particle defocus values.
| *project | project parameter structure. |
| axis | tilt axis angle (radians). |
| tilt | tilt angle (radians). |
Definition at line 805 of file mg_particles.cpp.
| double project_tilt_from_particle_defocus | ( | Bproject * | project | ) |
Finds the tilt axis from refined particle defocus values.
| *project | project parameter structure. |
Definition at line 712 of file mg_particles.cpp.