Bsoft  2.1.0
Bernard's software package
model_map.cpp File Reference

Function to generate a map from a model. More...

#include "rwmodel.h"
#include "model_transform.h"
#include "model_extract_build.h"
#include "rwimg.h"
#include "mg_orient.h"
#include "img_combine.h"
#include "utilities.h"

Go to the source code of this file.

Functions

Bmodel * model_from_images (Bimage *plist)
 Creates one or more models from 3D images. More...
 
Bimage * img_from_model (Bmodel *model, Vector3< double > ori, Vector3< long > size, Vector3< double > sam, double sigma)
 Calculates a map from model component coordinates.
More...
 
int model_catenate_maps (Bmodel *model, Bstring &filename)
 Concatenates all model maps into one multi-image file.
More...
 
int model_shell_fit (Bmodel *model, double hires, double lores, int neg)
 Fits a shell model as a rigid body to a map.
More...
 
int model_shell_radial_profile (Bmodel *model)
 Calculates a radial profile from a shell model.
More...
 
Bimage * model_shell_power_spectrum (Bmodel *model, Vector3< long > size, Vector3< double > origin, int ft_size, int ann_min, int ann_max, double hires, double lores)
 Calculates a radial profile from a shell model.
More...
 
int comp_set_fom_sym (Bcomponent *comp, Bimage *p, long minorder, long maxorder)
 
int model_component_symmetry (Bmodel *model, long nangles, long ann_min, long ann_max, long ann_width, long zmin, long zmax, long zinc, long minorder, long maxorder)
 Determines the cyclic symmetry of components. More...
 

Variables

int verbose
 

Detailed Description

Function to generate a map from a model.

Author
Bernard Heymann
Date
Created: 20081112
Modified: 20160906

Definition in file model_map.cpp.

Function Documentation

◆ comp_set_fom_sym()

int comp_set_fom_sym ( Bcomponent *  comp,
Bimage *  p,
long  minorder,
long  maxorder 
)

Definition at line 532 of file model_map.cpp.

◆ img_from_model()

Bimage* img_from_model ( Bmodel *  model,
Vector3< double >  ori,
Vector3< long >  size,
Vector3< double >  sam,
double  sigma 
)

Calculates a map from model component coordinates.

Parameters
*modelmodel.
oriorigin within new map.
sizesize of new map.
samvoxel size of new map.
sigmagaussian sphere width.
Returns
Bimage* new map.

Definition at line 59 of file model_map.cpp.

◆ model_catenate_maps()

int model_catenate_maps ( Bmodel *  model,
Bstring &  filename 
)

Concatenates all model maps into one multi-image file.

Parameters
*modelmodel.
&filenamenew map file name.
Returns
int 0.
The model map file name must be set and point to a valid file.

Definition at line 158 of file model_map.cpp.

◆ model_component_symmetry()

int model_component_symmetry ( Bmodel *  model,
long  nangles,
long  ann_min,
long  ann_max,
long  ann_width,
long  zmin,
long  zmax,
long  zinc,
long  minorder,
long  maxorder 
)

Determines the cyclic symmetry of components.

Parameters
*modelmodel parameters.
nanglesnumber of angles.
ann_minminimum annulus.
ann_maxmaximum annulus.
ann_widthannular width.
zminminimum z limit.
zmaxmaximum z limit.
zincz increment.
minorderminimum cyclic order to search for.
maxordermaximum cyclic order to search for.
Returns
int 0.

Definition at line 618 of file model_map.cpp.

◆ model_from_images()

Bmodel* model_from_images ( Bimage *  plist)

Creates one or more models from 3D images.

Parameters
*plistlist of images.
Returns
Bmodel* new model.
The model ID's are derived from the image filenames.

Definition at line 28 of file model_map.cpp.

◆ model_shell_fit()

int model_shell_fit ( Bmodel *  model,
double  hires,
double  lores,
int  neg 
)

Fits a shell model as a rigid body to a map.

Parameters
*modelmodel.
hireshigh resolution limit.
loreslow resolution limit.
negflag to set contrast negative.
Returns
int 0.
The model map file name must be set and point to a valid file.

Definition at line 192 of file model_map.cpp.

◆ model_shell_power_spectrum()

Bimage* model_shell_power_spectrum ( Bmodel *  model,
Vector3< long >  size,
Vector3< double >  origin,
int  ft_size,
int  ann_min,
int  ann_max,
double  hires,
double  lores 
)

Calculates a radial profile from a shell model.

Parameters
*modelmodel.
sizesize of component density to extract.
originorigin for extracted densities.
ft_sizeFourier transform size.
ann_minminimum annulus for rotational alignment.
ann_maxmaximum annulus for rotational alignment.
hireshigh resolution limit for cross-correlation.
loreslow resolution limit for cross-correlation.
Returns
Bimage* 0.
The model map file name must be set and point to a valid file.

Definition at line 344 of file model_map.cpp.

◆ model_shell_radial_profile()

int model_shell_radial_profile ( Bmodel *  model)

Calculates a radial profile from a shell model.

Parameters
*modelmodel.
Returns
int 0.
The model map file name must be set and point to a valid file.

Definition at line 240 of file model_map.cpp.

Variable Documentation

◆ verbose

int verbose
extern