rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rexlib::em::ctf_optics Class Reference

Constants of a microscope that the contrast transfer function depends on. More...

#include <rexlib/em/ops/parameters/ctf_optics.hpp>

Public Member Functions

 ctf_optics (double voltage, double spherical_aberration, double amplitude_contrast)
 Construct the optics of a microscope.
 
double get_voltage () const noexcept
 Get the acceleration voltage.
 
double get_spherical_aberration () const noexcept
 Get the spherical aberration coefficient.
 
double get_amplitude_contrast () const noexcept
 Get the fraction of amplitude contrast.
 
double get_wavelength () const noexcept
 Get the relativistic wavelength of the electrons.
 

Detailed Description

Constants of a microscope that the contrast transfer function depends on.

Constructor & Destructor Documentation

◆ ctf_optics()

rexlib::em::ctf_optics::ctf_optics ( double  voltage,
double  spherical_aberration,
double  amplitude_contrast 
)

Construct the optics of a microscope.

Parameters
voltageThe acceleration voltage, in kilovolts.
spherical_aberrationThe spherical aberration coefficient, in millimetres.
amplitude_contrastThe fraction of amplitude contrast.
Exceptions
std::invalid_argumentWhen the voltage is not finite and positive, the spherical aberration is not finite, or the amplitude contrast lies outside [0, 1).

Member Function Documentation

◆ get_amplitude_contrast()

double rexlib::em::ctf_optics::get_amplitude_contrast ( ) const
noexcept

Get the fraction of amplitude contrast.

Returns
double The fraction.

◆ get_spherical_aberration()

double rexlib::em::ctf_optics::get_spherical_aberration ( ) const
noexcept

Get the spherical aberration coefficient.

Returns
double The coefficient, in millimetres.

◆ get_voltage()

double rexlib::em::ctf_optics::get_voltage ( ) const
noexcept

Get the acceleration voltage.

Returns
double The voltage, in kilovolts.

◆ get_wavelength()

double rexlib::em::ctf_optics::get_wavelength ( ) const
noexcept

Get the relativistic wavelength of the electrons.

The wavelength is 12.2643247 / sqrt(V (1 + 0.978466e-6 V)), with V the voltage in volts.

Returns
double The wavelength, in angstroms.

The documentation for this class was generated from the following file: