| Bsoft 2.0.5 Bernard's software package

mg_img_proc.h
Go to the documentation of this file.
1
9 #include "mg_processing.h"
10 #include "rwimg.h"
11
12 // Function prototypes
13 Bstring image_type(Bstring type);
14 Bproject* project_create_from_image(Bimage* p, Bstring type);
15 Bproject* project_create_from_images(Bstring* file_list, Bstring type);
16 Bimage* particle_read_img(Bparticle* part, int readflag);
17 int particle_write_img(Bparticle* part, Bimage* p, int compression);
18 int project_check_particles(Bproject* project);
19 Vector3<long> micrograph_get_size(Bmicrograph* mg);
20 Vector3<double> micrograph_get_nominal_origin(Bmicrograph* mg);
21 int project_set_nominal_mg_origins(Bproject* project);
22 int project_reset_origins(Bproject* project);
23 int project_set_part_img_origins(Bproject* project);
24 long project_delesect_edge_particles(Bproject* project);
25 int project_get_part_box_size(Bproject* project);
26 Vector3<long> particle_get_box_size(Bparticle* part);
27 int project_write_particle_classes(Bproject* project);
28 int project_trim_class_averages(Bproject* project, Bstring& list);
29 int project_flip_particle_coordinates(Bproject* project, int flip);
30 int project_set_views_from_images(Bproject* project);
31 int project_set_views_in_images(Bproject* project);
32 int project_bin_micrographs(Bproject* project, int bin, Bstring mgpath, Bstring partpath);
33 int project_change_pixel_size(Bproject* project, double new_pixel_size, Bstring mgpath, Bstring partpath);
34
35
36
project_set_part_img_origins
int project_set_part_img_origins(Bproject *project)
Writes particle origins into particle image files.
Definition: mg_img_proc.cpp:729
project_set_views_from_images
int project_set_views_from_images(Bproject *project)
Gets views from particle images.
Definition: mg_img_proc.cpp:1033
micrograph_get_size
Vector3< long > micrograph_get_size(Bmicrograph *mg)
Gets the size of a micrograph.
Definition: mg_img_proc.cpp:602
project_delesect_edge_particles
long project_delesect_edge_particles(Bproject *project)
Deselects particles that are too close to the image edges.
Definition: mg_img_proc.cpp:757
project_set_nominal_mg_origins
int project_set_nominal_mg_origins(Bproject *project)
Sets micrograph origins to the centers of the micrographs.
Definition: mg_img_proc.cpp:660
project_reset_origins
int project_reset_origins(Bproject *project)
Resets particle origins to nominal values.
Definition: mg_img_proc.cpp:690
project_trim_class_averages
int project_trim_class_averages(Bproject *project, Bstring &list)
Deletes selected class averages from the project..
Definition: mg_img_proc.cpp:919
project_create_from_images
Bproject * project_create_from_images(Bstring *file_list, Bstring type)
Creates a project structure using image file names.
Definition: mg_img_proc.cpp:224
project_write_particle_classes
int project_write_particle_classes(Bproject *project)
Writes particles to different stacks based on class.
Definition: mg_img_proc.cpp:849
project
Bproject * project
Definition: bshow.cpp:31
project_create_from_image
Bproject * project_create_from_image(Bimage *p, Bstring type)
Creates a project structure using image file names.
Definition: mg_img_proc.cpp:67
particle_read_img
Bimage * particle_read_img(Bparticle *part, int readflag)
Reads a particle image file.
Definition: mg_img_proc.cpp:463
project_bin_micrographs
int project_bin_micrographs(Bproject *project, int bin, Bstring mgpath, Bstring partpath)
Bins all micrographs a project.
Definition: mg_img_proc.cpp:1383
Bimage
General image parameter class.
Definition: Bimage.h:163
project_set_views_in_images
int project_set_views_in_images(Bproject *project)
Sets views in particle images from the project parameter structure.
Definition: mg_img_proc.cpp:1082
project_check_particles
int project_check_particles(Bproject *project)
Checks particle numbers and box sizes.
Definition: mg_img_proc.cpp:548
project_get_part_box_size
int project_get_part_box_size(Bproject *project)
Gets the box size from particle image files.
Definition: mg_img_proc.cpp:794
project_change_pixel_size
int project_change_pixel_size(Bproject *project, double new_pixel_size, Bstring mgpath, Bstring partpath)
Changes all the micrograph fields linked to the pixel size.
Definition: mg_img_proc.cpp:1414
particle_get_box_size
Vector3< long > particle_get_box_size(Bparticle *part)
Gets the box size from particle image file.
Definition: mg_img_proc.cpp:827
Bmicrograph
Definition: mg_processing.h:200
Bparticle
Definition: mg_processing.h:89
Bstring
Definition: Bstring.h:29
image_type
Bstring image_type(Bstring type)
Converts an image type string to a standard form.
Definition: mg_img_proc.cpp:36
project_flip_particle_coordinates
int project_flip_particle_coordinates(Bproject *project, int flip)
Reverses one or more particle coordinates.
Definition: mg_img_proc.cpp:970
Vector3< long >
particle_write_img
int particle_write_img(Bparticle *part, Bimage *p, int compression)
Writes a particle image file.
Definition: mg_img_proc.cpp:509
micrograph_get_nominal_origin
Vector3< double > micrograph_get_nominal_origin(Bmicrograph *mg)
Gets the nominal origin for a micrograph.
Definition: mg_img_proc.cpp:631
mg_processing.h
Header file for micrograph processing.
rwimg.h
Header file for 2D and 3D image I/O.
Bproject
Definition: mg_processing.h:333