Bsoft  2.1.0
Bernard's software package
mg_subtomo.h
Go to the documentation of this file.
1 
12 #include "rwimg.h"
13 #include "View.h"
14 #include "symmetry.h"
15 #include "mg_processing.h"
16 
17 // Sphere structure
18 #ifndef _Sphere_
19 #define _Sphere_
20 struct Sphere {
21  double A,B,C; // Sphere coordinates
22  double R; // Sphere radius
23 } ;
24 #endif
25 
26 // Function prototypes
27 
29  Bimage* p, Bimage* ptemp, Bimage* pmask, Bimage* pmask2,
30  double alpha_step, double theta_step, double phi_step,
31  double alpha_limit, double thetaphi_limit,
32  double hires, double lores, double shiftlimit, double mindist,
33  double threshold, int maxhits, Vector3<long> bin, Bsymmetry* sym,
34  int refinepeaks, Bstring ccmax_file);
35 
37  Bimage* p, Bimage* ptemp, Bimage* pmask, Bimage* pmask2,
38  double alpha_step, double theta_step, double phi_step,
39  double alpha_limit, double thetaphi_limit,
40  double hires, double lores, double shiftlimit,
41  double shiftlimitz, double shiftlimitxy, double mindist,
42  Vector3<long> bin, Bsymmetry* sym, int iters, int refinepeaks, Bstring ccmax_file);
43 
44 Bparticle* img_find_refine_peaks(Bimage* pcc, View view, double shift_limit,
45  double shift_along, double shift_orthogonal, double mindist,
46  double threshold, int maxhits, int refinepeaks);
47 
48 double img_find_peak_subtomo(Bimage* p, View view, double shift,
49  double shift_along, double shift_orthogonal);
50 
51 
52 
53 
56 //double closest_point_plane_distance2(Vector3<double> point, Vector3<double> point2, View view);
57 double closest_point_disc_distance2(Vector3<double> point, Vector3<double> point2, View view, double radius);
58 
59 //Vector3<double> closest_point_plane(Vector3<double> point, Vector3<double> point2, View vieW);
60 
61 Sphere locations_fit_sphere(Bparticle* part, int N, double Nstop);
62 
locations_fit_sphere
Sphere locations_fit_sphere(Bparticle *part, int N, double Nstop)
Least squares fit a sphere to 3D data (particle locations)
Definition: mg_subtomo.cpp:907
Sphere::R
double R
Definition: mg_subtomo.h:22
Bstring
Definition: Bstring.h:29
Bparticle
Definition: mg_processing.h:90
symmetry.h
Header file for general symmetry functions.
Vector3< long >
View
Definition: View.h:26
Bsymmetry
Definition: symmetry.h:38
img_find_peak_subtomo
double img_find_peak_subtomo(Bimage *p, View view, double shift, double shift_along, double shift_orthogonal)
Finds the peak in an image to the nearest voxel.
Definition: mg_subtomo.cpp:668
Sphere::B
double B
Definition: mg_subtomo.h:21
reconstruction_search_subtomo
long reconstruction_search_subtomo(Breconstruction *rec, Bimage *p, Bimage *ptemp, Bimage *pmask, Bimage *pmask2, double alpha_step, double theta_step, double phi_step, double alpha_limit, double thetaphi_limit, double hires, double lores, double shiftlimit, double mindist, double threshold, int maxhits, Vector3< long > bin, Bsymmetry *sym, int refinepeaks, Bstring ccmax_file)
Definition: mg_subtomo.cpp:141
img_find_refine_peaks
Bparticle * img_find_refine_peaks(Bimage *pcc, View view, double shift_limit, double shift_along, double shift_orthogonal, double mindist, double threshold, int maxhits, int refinepeaks)
Finds peaks in an image to the nearest voxel iteratively.
Definition: mg_subtomo.cpp:601
Bimage
General image parameter class.
Definition: Bimage.h:177
reconstruction_refine_subtomo
long reconstruction_refine_subtomo(Breconstruction *rec, Bimage *p, Bimage *ptemp, Bimage *pmask, Bimage *pmask2, double alpha_step, double theta_step, double phi_step, double alpha_limit, double thetaphi_limit, double hires, double lores, double shiftlimit, double shiftlimitz, double shiftlimitxy, double mindist, Vector3< long > bin, Bsymmetry *sym, int iters, int refinepeaks, Bstring ccmax_file)
Refines the view vectors for particles already in the project.
Definition: mg_subtomo.cpp:334
Sphere
Definition: mg_subtomo.h:20
Breconstruction
Definition: mg_processing.h:283
rwimg.h
Header file for 2D and 3D image I/O.
Sphere::C
double C
Definition: mg_subtomo.h:21
closest_point_line
Vector3< double > closest_point_line(Vector3< double > point, Vector3< double > endpoint1, Vector3< double > endpoint2)
Calculates the closest point on a line segment from a given point.
Definition: mg_subtomo.cpp:755
mg_processing.h
Header file for micrograph processing.
View.h
View object.
Sphere::A
double A
Definition: mg_subtomo.h:21
closest_point_disc_distance2
double closest_point_disc_distance2(Vector3< double > point, Vector3< double > point2, View view, double radius)
Calculates the squared distance to the closest point on a disc from a given point.
Definition: mg_subtomo.cpp:835
closest_point_line_distance2
double closest_point_line_distance2(Vector3< double > point, Vector3< double > endpoint1, Vector3< double > endpoint2)
Calculates the squared distance to the closest point on a line segment from a given point.
Definition: mg_subtomo.cpp:794