Bsoft  1.9
Bernard's software package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
img_tomography.h File Reference

Header file for tomographic applications. More...

#include "marker.h"
#include "rwimg.h"

Go to the source code of this file.

Functions

Bimage * img_gold_particle (Vector3< size_t > size, double radius)
 Generates an image representing a gold particle. More...
 
Bmarker * img_find_gold_particles (Bimage *p, int img_select, double radius, size_t edge, double cutoff)
 Finds gold particles in micrograph images. More...
 
Bimage * img_marker_projection (Vector3< size_t > size, Vector3< double > offset, double radius, Bimage *pmark, Bmarker *mark)
 Generates a projection image of the global marker model. More...
 
int img_stretch (Bimage *p, double axis, double tilt)
 Stretches an image to what it should correspond to at 0 degree tilt. More...
 
int img_clear_extraneous_areas (Bimage *p, double tilt_axis, double tilt_angle, size_t thickness)
 Clears areas from a micrograph not used in a reconstruction. More...
 

Detailed Description

Header file for tomographic applications.

Author
Bernard Heymann
Date
Created: 20021013
Modified: 20090213

Definition in file img_tomography.h.

Function Documentation

int img_clear_extraneous_areas ( Bimage *  p,
double  tilt_axis,
double  tilt_angle,
size_t  thickness 
)

Clears areas from a micrograph not used in a reconstruction.

Parameters
*pmicrograph parameter structure.
tilt_axismicrograph tilt axis angle.
tilt_anglemicrograph tilt angle.
thicknessintended thickness of reconstruction.
Returns
int 0.
The image origin must be set to that for the micrograph.

Definition at line 314 of file img_tomography.cpp.

Bmarker* img_find_gold_particles ( Bimage *  p,
int  img_select,
double  radius,
size_t  edge,
double  cutoff 
)

Finds gold particles in micrograph images.

Parameters
*pimage.
img_selectselected subimage, -1 if all.
radiusgold particle radius in voxel units.
edgeedge width to eliminate particles.
cutoffFOM cutoff, if 0 then half of maximum FOM.
Returns
Bmarker* list of markers.
An image of the size of an input sub-image is generated with a gold
particle (black or negative density) at its center.
Each sub-image is cross-correlated with the gold particle image
and the position within the image reported.
The FOM cutoff is used to select cross-correlation peaks, except it
is reset for the following:
    cutoff == 0 ==> cutoff = FOMavg + FOMstd
    cutoff <  0 ==> cutoff = FOMmax/2

Definition at line 71 of file img_tomography.cpp.

Bimage* img_gold_particle ( Vector3< size_t >  size,
double  radius 
)

Generates an image representing a gold particle.

Parameters
sizesize of image to generate.
radiusgold particle radius in voxel units.
Returns
Bimage* gold particle image.
An image of the size of an input sub-image is generated with a gold
particle (black or negative density) at its center.

Definition at line 31 of file img_tomography.cpp.

Bimage* img_marker_projection ( Vector3< size_t >  size,
Vector3< double >  offset,
double  radius,
Bimage *  pmark,
Bmarker *  mark 
)

Generates a projection image of the global marker model.

Parameters
sizesize of image.
offsetoffset to add to marker locations.
radiusgold fiducial marker radius.
*pmarkaverage marker image (can be NULL).
*marklist of markers.
Returns
Bimage* marker projection image.
If the input marker image is NULL, synthetic particle images are 
generated using the input radius.

Definition at line 209 of file img_tomography.cpp.

int img_stretch ( Bimage *  p,
double  axis,
double  tilt 
)

Stretches an image to what it should correspond to at 0 degree tilt.

Parameters
*pimage.
axistilt axis angle.
tilttilt angle.
Returns
int 0.
The image is stretched perpendicular to the tilt axis by a factor of
cos(tilt_angle). This implicitly assumes that the image is of a very
thin, planar specimen that can be stretched in this way to get an
image similar to that expected for 0 degree tilt.

Definition at line 251 of file img_tomography.cpp.