Bsoft function
img_ctf_radial_average
Source:
src/img/img_ctf.c
Description:
Calculates the power spectrum radial average corrected for astigmatism.
Algorithm:
A power spectrum with its origin at the center.
Functions:
angle = atan(y/x) - astigmatism_angle
s2 = reciprocal space distance squared
defocus_min = defocus_avg - defocus_dev
defocus_max = defocus_avg + defocus_dev
cmin = defocus_min/(lambda*lambda*Cs)
cmax = defocus_max/(lambda*lambda*Cs)
cavg = 2*defocus_avg/(lambda*lambda*Cs)
smin2 = cmax - sqrt(cmax*cmax + s2*(s2 - cavg))
smax2 = cmin - sqrt(cmin*cmin + s2*(s2 - cavg))
radius = sqrt(2*s2*(smax2*cos(angle)*cos(angle)+
smin2*sin(angle)*sin(angle))/(smax2+smin2))
The radial average is returned as a new 1D image.
Arguments:
| Bimage* p | image structure.
|
| CTF* em_ctf | CTF parameter structure.
|
Returns:
Bimage* radial average, NULL on error.
Prototype:
Bimage* img_ctf_radial_average(Bimage* p, CTF* em_ctf)
Functions used:
balloc
bfree
check_defocus_and_Cs
copy_img
electron_wavelength
img_stats
Other objects included:
struct Bimage
struct Bmarker
class Complex
Generated by bdoc.pl on Mon Jun 15 11:47:48 2009
Back to the Bsoft home