Functions to manage CTF (contrast transfer function) parameters.
More...
#include "ctf.h"
#include "utilities.h"
Go to the source code of this file.
Functions to manage CTF (contrast transfer function) parameters.
- Author
- Bernard Heymann
- Date
- Created: 20000426
-
Modified: 20200304
Definition in file ctf.cpp.
◆ beta()
| double beta |
( |
double |
volt | ) |
|
Calculates the relative electron velocity.
- Parameters
-
| volt | acceleration voltage. |
- Returns
- double relative electron velocity.
1
beta = sqrt(1 - ---------------------)
(1+e*volt/(me*c^2))^2
Definition at line 500 of file ctf.cpp.
◆ beta2()
| double beta2 |
( |
double |
volt | ) |
|
Calculates the square of the relative electron velocity.
- Parameters
-
| volt | acceleration voltage. |
- Returns
- double square of the relative electron velocity.
1
beta2 = 1 - ---------------------
(1+e*volt/(me*c^2))^2
Definition at line 479 of file ctf.cpp.
◆ C_curve()
| vector<double> C_curve |
( |
long |
n, |
|
|
double |
freq_step |
|
) |
| |
Calculates the carbon scattering curve.
- Parameters
-
| n | length of curve. |
| freq_step | frequency step size. |
- Returns
- vector<double> array with C-curve.
The curve is based on the sum of five Gaussians.
Definition at line 515 of file ctf.cpp.
◆ ctf_from_json()
Converts a JSON object list to microscope parameters.
- Parameters
-
- Returns
- CTFparam microscope parsmeter structure.
Definition at line 423 of file ctf.cpp.
◆ ctf_to_json()
Converts microscope parameters to a JSON object list.
- Parameters
-
| &cp | microscope parsmeter structure. |
- Returns
- JSvalue JSON object list.
Definition at line 397 of file ctf.cpp.
◆ defocus_factor()
| double defocus_factor |
( |
CTFparam & |
ctf, |
|
|
double |
def_min, |
|
|
double |
def_max, |
|
|
double |
def_step |
|
) |
| |
Calculates an integrated defocus weighting factor for a raneg of defocus values.
- Parameters
-
| &ctf | CTF parameters. |
| def_min | minimum defocus. |
| def_max | maximum defocus. |
| def_step | defocus step. |
- Returns
- vector<double> sum of all CTF curves.
The CTF curves are calculated up to the frequency cutoff determined by the objective aperture.
Definition at line 589 of file ctf.cpp.
◆ defocus_range_profile()
| vector<double> defocus_range_profile |
( |
CTFparam & |
ctf, |
|
|
double |
freq_step, |
|
|
double |
def_min, |
|
|
double |
def_max, |
|
|
double |
def_step |
|
) |
| |
Calculates a weighting profile associated with a range of defocus values.
- Parameters
-
| &ctf | CTF parameters. |
| freq_step | frequency step size. |
| def_min | minimum defocus. |
| def_max | maximum defocus. |
| def_step | defocus step. |
- Returns
- vector<double> sum of all CTF curves.
The CTF curves are calculated up to the frequency cutoff determined by the objective aperture.
Definition at line 544 of file ctf.cpp.
◆ electron_wavelength()
| double electron_wavelength |
( |
double |
volt | ) |
|
Calculates the wavelength in angstrom from the acceleration voltage.
- Parameters
-
| volt | acceleration voltage. |
- Returns
- double wavelength in angstrom, <0 on error.
12.26
lambda = ----------------------------
sqrt(volt*(1+volt*0.9788e-6)
1e10 * h
lambda = ---------------------------------------
sqrt(2*me*e*volt*(1+e*volt/(2*me*c^2)))
Definition at line 456 of file ctf.cpp.
◆ verbose