|
Bsoft
2.1.0
Bernard's software package
|
#include "Vector3.h"#include "Matrix3.h"#include "Quaternion.h"#include "random_numbers.h"#include "utilities.h"Go to the source code of this file.
Classes | |
| class | View |
Functions | |
| ostream & | operator<< (ostream &output, View v) |
| int | show_views (View *v) |
| Displays a linked list of views. More... | |
| View * | view_array (View *views, long &n) |
| Copies views from a list into an array. More... | |
| View * | tilt_views (double ang_min, double ang_max, double ang_step, double axis) |
| Initializes a set of views tilted around the y axis. More... | |
| View | random_view () |
| Calculates a random view. More... | |
| View | view_random_reslice () |
| Generates a random reslicing 3x3 rotation matrix. More... | |
| View * | random_views (int nviews) |
| Calculates a set of random views. More... | |
| double | random_view_error (View &v, double std) |
| Calculates a new view with a random error from the given view. More... | |
| View * | views_within_limits (View theview, double theta_step, double phi_step, double alpha_step, double view_angle_limit, double alpha_angle_limit) |
| Generates a list of views within an angular distance from the input view. More... | |
| View * | views_for_refinement (View theview, double alpha_step) |
| Generates a 3x3 grid of views around an input view. More... | |
| View * | views_for_refinement (View theview, double alpha_step1, double alpha_step2, double alpha_step3, double max_alpha3) |
| Generates a 3x3 grid of views around an input view. More... | |
| View * | view_list_expand_angles (View *views, double amin, double amax, double astep) |
| Expands each view to several views with different rotation angles. More... | |
| int | view_list_subset (View **view_list, int start, int size) |
| Replaces a view list with a subset of it. More... | |
| View random_view | ( | ) |
| double random_view_error | ( | View & | v, |
| double | std | ||
| ) |
Calculates a new view with a random error from the given view.
| &v | given view (modified). |
| std | standard deviation of gaussian distribution. |
The rotation between the given and new views is defined by the gaussian distributed random angle and a random axis. A random seed should already have been generated.
| View* random_views | ( | int | nviews | ) |
| int show_views | ( | View * | v | ) |
| View* tilt_views | ( | double | ang_min, |
| double | ang_max, | ||
| double | ang_step, | ||
| double | axis | ||
| ) |
Initializes a set of views tilted around the y axis.
| ang_min | starting angle (radians). |
| ang_max | ending angle (radians). |
| ang_step | angular step size (radians). |
| axis | tilt axis angle (radians). |
A set of views is calculated corresponding to tilted views imaged during tomography. The tilt axis angle is taken as a counter-clockwise rotation from the x-axis.
| int view_list_subset | ( | View ** | view_list, |
| int | start, | ||
| int | size | ||
| ) |
| View view_random_reslice | ( | ) |
| View* views_for_refinement | ( | View | theview, |
| double | alpha_step1, | ||
| double | alpha_step2, | ||
| double | alpha_step3, | ||
| double | max_alpha3 | ||
| ) |
Generates a 3x3 grid of views around an input view.
| theview | the input view. |
| alpha_step1 | angular step size for view vector in one direction (radians). |
| alpha_step2 | angular step size for view vector in second direction (radians). |
| alpha_step3 | angular step size around view vector (radians). |
| max_alpha3 | maximum for step 3. |
| View* views_within_limits | ( | View | theview, |
| double | theta_step, | ||
| double | phi_step, | ||
| double | alpha_step, | ||
| double | view_angle_limit, | ||
| double | alpha_angle_limit | ||
| ) |
Generates a list of views within an angular distance from the input view.
| theview | the input view. |
| theta_step | theta step size (radians). |
| phi_step | phi step size (radians). |
| alpha_step | alpha step size (radians). |
| view_angle_limit | angular distance limit from view vector (radians). |
| alpha_angle_limit | angular distance limit from view rotation angle (radians). |
The list of views forms a 3D search grid in orientation space.