Bsoft 2.1.4
Bernard's software package
mg_refine.h File Reference

Reciprocal space refinement of orientation parameters of particle images. More...

#include "mg_processing.h"
#include "rwimg.h"
#include "symmetry.h"

Functions

long mg_refine_orientations (Bproject *project, Bstring &reffile, Bstring &maskfile, Bstring &sym_string, int part_select, int max_iter, double alpha_step, double accuracy, double shift_step, double shift_accuracy, int fom_type, vector< double > weight, double hi_res, double lo_res, int kernel_width, int kernel_power, double edge_radius, double def_std, double shift_std, double view_std, double max_angle, double max_mag, int flags)
 Refine the orientation and origin with respect to a reference map. More...
 
long project_refine_orientations (Bproject *project, Bstring &reffile, Bstring &maskfile, Bstring &sym_string, int part_select, int max_iter, double alpha_step, double accuracy, double shift_step, double shift_accuracy, int fom_type, vector< double > weight, double hi_res, double lo_res, int kernel_width, int kernel_power, double edge_radius, double def_std, double shift_std, double view_std, double max_angle, double max_mag, int flags)
 

Detailed Description

Reciprocal space refinement of orientation parameters of particle images.

Author
Bernard Heymann
Date
Created: 20070115
Modified: 20190207

Function Documentation

◆ mg_refine_orientations()

long mg_refine_orientations ( Bproject project,
Bstring reffile,
Bstring maskfile,
Bstring sym_string,
int  part_select,
int  max_iter,
double  alpha_step,
double  accuracy,
double  shift_step,
double  shift_accuracy,
int  fom_type,
vector< double >  weight,
double  hi_res,
double  lo_res,
int  kernel_width,
int  kernel_power,
double  edge_radius,
double  def_std,
double  shift_std,
double  view_std,
double  max_angle,
double  max_mag,
int  flags 
)

Refine the orientation and origin with respect to a reference map.

Parameters
*projectimage processing parameter structure.
&reffilefile containing reference map.
&maskfilefile containing a real space mask (can be empty).
&sym_stringpoint group symmetry designator.
part_selectparticle selection for processing.
max_iterMonte Carlo maximum number of refining iterations.
alpha_stepgrid search angular step size.
accuracygrid search accuracy.
shift_stepgrid shift size.
shift_accuracygrid shift accuracy.
fom_typetype of resolution measure: 0=FRC, 1=DPR
weight1D reciprocal space weight curve.
hi_reshigh resolution limit (angstrom).
lo_reslow resolution limit (angstrom).
kernel_widthinterpolation kernel width.
kernel_powerinterpolation kernel power.
edge_radiusedge radius to mask background using previous origin.
def_stdrandom defocus standard deviation
shift_stdrandom origin shift standard deviation.
view_stdrandom view shift standard deviation.
max_anglemaximum random rotation angle adjustment.
max_magmaximum magnification adjustment.
flagsoption flags.
Returns
long number of comparisons, <0 on error.
The orientation, origin, magnitude and defocus are refined for each particle.
The default method uses a grid search around the existing view and origin.
Specifying the maximum number of iterations switches the algorithm to a
Monte Carlo search for the best parameters.
The FOM is either based on the FSC or the DPR.

◆ project_refine_orientations()

long project_refine_orientations ( Bproject project,
Bstring reffile,
Bstring maskfile,
Bstring sym_string,
int  part_select,
int  max_iter,
double  alpha_step,
double  accuracy,
double  shift_step,
double  shift_accuracy,
int  fom_type,
vector< double >  weight,
double  hi_res,
double  lo_res,
int  kernel_width,
int  kernel_power,
double  edge_radius,
double  def_std,
double  shift_std,
double  view_std,
double  max_angle,
double  max_mag,
int  flags 
)