Bsoft  2.1.0
Bernard's software package
mg_align.h
Go to the documentation of this file.
1 
9 #include "mg_processing.h"
10 #include "Bimage.h"
11 #include "Vector3.h"
12 
13 // Function prototypes
14 int mg_align_coordinates(Bproject* project, int refset);
15 int mg_align_micrographs(Bproject* project, int refset,
16  Vector3<long> tile_size, double res_lo, double res_hi,
17  double max_shift, int filter_flag, int refine_flag);
18 int mg_align_feature_extraction(Bproject* project, int max_features,
19  double res_low, double res_high, double thresh, int extract_method);
20 int mg_apply_transform(Bmicrograph* mg_ref, Bmicrograph* mg_apply);
21 int mg_merge_focal_series(Bproject* project, int use_old_origins);
23  Bstring& imgfile, DataType datatype, Bstring& subset);
25  Bstring& imgfile, DataType datatype);
26 double project_align_frames(Bproject* project, int ref_img, Bimage* pgr,
27  Bimage* pmask, Vector3<double> origin, double hi_res, double lo_res,
28  double shift_limit, double edge_width, double gauss_width,
29  Vector3<long> bin, JSvalue& dose_frac, Bstring& subset, int flag);
30 double project_align_series(Bproject* project, int ref_img, Bimage* pgr,
31  Bimage* pmask, Vector3<double> origin, double hi_res, double lo_res,
32  double shift_limit, double edge_width, double gauss_width,
33  Vector3<long> bin, Bstring& subset, int flag);
35  Vector3<long> size, double scale, double hi_res);
36 long project_tomo_align(Bproject* project, long thickness, long iter, double dchange,
37  long dimg, double resolution, double shift_limit, double edge_width, double gauss_width);
39 
Bmicrograph
Definition: mg_processing.h:201
mg_align_micrographs
int mg_align_micrographs(Bproject *project, int refset, Vector3< long > tile_size, double res_lo, double res_hi, double max_shift, int filter_flag, int refine_flag)
Aligns a focal series of micrographs.
Definition: mg_align.cpp:319
Bstring
Definition: Bstring.h:29
mg_align_feature_extraction
int mg_align_feature_extraction(Bproject *project, int max_features, double res_low, double res_high, double thresh, int extract_method)
Aligns images by feature extraction.
Definition: mg_align.cpp:545
Vector3< long >
project
Bproject * project
Definition: bshow.cpp:33
project_write_aligned_averages
double project_write_aligned_averages(Bproject *project, Bimage *pgr, Bstring &imgfile, DataType datatype, Bstring &subset)
Calculates aligned micrograph images and write them to a file.
Definition: mg_align.cpp:1024
Bimage
General image parameter class.
Definition: Bimage.h:177
Bproject
Definition: mg_processing.h:336
project_write_aligned_images
double project_write_aligned_images(Bproject *project, Bimage *pgr, Bstring &imgfile, DataType datatype)
Calculates aligned micrograph images and write them to a file.
Definition: mg_align.cpp:952
Vector3.h
Class for 3-value vectors.
project_align_series
double project_align_series(Bproject *project, int ref_img, Bimage *pgr, Bimage *pmask, Vector3< double > origin, double hi_res, double lo_res, double shift_limit, double edge_width, double gauss_width, Vector3< long > bin, Bstring &subset, int flag)
Aligns a series of micrographs by cross-correlation.
Definition: mg_align.cpp:1446
JSvalue
Definition: json.h:53
Bimage.h
Header file for image class.
project_align_frames
double project_align_frames(Bproject *project, int ref_img, Bimage *pgr, Bimage *pmask, Vector3< double > origin, double hi_res, double lo_res, double shift_limit, double edge_width, double gauss_width, Vector3< long > bin, JSvalue &dose_frac, Bstring &subset, int flag)
Aligns a series of micrographs by cross-correlation.
Definition: mg_align.cpp:1220
mg_align_coordinates
int mg_align_coordinates(Bproject *project, int refset)
Aligns the particle coordinates of a series of micrographs.
Definition: mg_align.cpp:39
project_ssnr
double project_ssnr(Bproject *project)
Definition: mg_align.cpp:1920
mg_apply_transform
int mg_apply_transform(Bmicrograph *mg_ref, Bmicrograph *mg_apply)
Applies a transformation to particle coordinates in a reference micrograph and writes them into an ap...
Definition: mg_align.cpp:634
mg_processing.h
Header file for micrograph processing.
mg_merge_focal_series
int mg_merge_focal_series(Bproject *project, int use_old_origins)
Merges corresponding particle images in each focal series.
Definition: mg_align.cpp:766
project_tomo_align
long project_tomo_align(Bproject *project, long thickness, long iter, double dchange, long dimg, double resolution, double shift_limit, double edge_width, double gauss_width)
Aligns a series of micrographs by cross-correlation sequentially.
Definition: mg_align.cpp:1764
DataType
DataType
Base data type specifier.
Definition: utilities.h:150
mg_tomo_reconstruct2D
Bimage * mg_tomo_reconstruct2D(Bproject *project, long dimg, Vector3< long > size, double scale, double hi_res)
Reconstructs the zero-tilt image of a tilt-series.
Definition: mg_align.cpp:1609