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::insert_ctf_slices_operation Class Referencefinal

Insert the spectra of projections into the spectrum of a volume, weighted by their contrast transfer function. More...

#include <rexlib/em/ops/reconstruction/insert_ctf_slices_operation.hpp>

Inheritance diagram for rexlib::em::insert_ctf_slices_operation:
rexlib::trivial_operation< insert_ctf_slices_operation, insert_ctf_slices_operation_traits > rexlib::basic_operation< Derived, Traits > rexlib::operation

Public Member Functions

 insert_ctf_slices_operation (const gridding_window &window, const ctf_optics &optics, double pixel_size)
 Construct an insertion weighted by the CTF.
 
const gridding_window & get_window () const noexcept
 Get the gridding window.
 
const ctf_optics & get_optics () const noexcept
 Get the optics of the microscope.
 
double get_pixel_size () const noexcept
 Get the size of a pixel of the images.
 
- Public Member Functions inherited from rexlib::trivial_operation< insert_ctf_slices_operation, insert_ctf_slices_operation_traits >
const operation_signature & get_signature () const noexcept override
 Get the signature deciding the shape and data type of the operands of this operation.
 
- Public Member Functions inherited from rexlib::basic_operation< Derived, Traits >
const operation_descriptor & get_descriptor () const noexcept override
 Get the description of this operation.
 
operation_id get_id () const noexcept override
 Get the identifier of Derived.
 
- Public Member Functions inherited from rexlib::operation
 operation (const operation &other)=delete
 
 operation (operation &&other)=delete
 
operation & operator= (const operation &other)=delete
 
operation & operator= (operation &&other)=delete
 

Additional Inherited Members

- Public Types inherited from rexlib::basic_operation< Derived, Traits >
using traits_type = Traits
 
using shape_rule_type = typename Traits::shape_rule_type
 
using type_rule_type = typename Traits::type_rule_type
 
- Static Public Member Functions inherited from rexlib::basic_operation< Derived, Traits >
static const operation_descriptor & get_static_descriptor () noexcept
 Get the description shared by every instance.
 
- Static Public Attributes inherited from rexlib::basic_operation< Derived, Traits >
static REXLIB_CONST_CONSTEXPR std::size_t output_operand_count
 
static REXLIB_CONST_CONSTEXPR std::size_t input_operand_count
 

Detailed Description

Insert the spectra of projections into the spectrum of a volume, weighted by their contrast transfer function.

Works as insert_slices_operation, with one more input after transform: ctf, the four CTF parameters of each slice, with the core axis (4):

  1. The defocus D_u along the direction of the angle a, in angstroms.
  2. The defocus D_v across that direction, in angstroms.
  3. The angle a, from the x axis towards the y axis, in radians.
  4. The phase shift f, in radians.

A positive defocus is an underfocus. With c(k) the CTF of the frequency k of a slice:

The CTF is c(k) = sin(pi L D s^2 - (pi / 2) Cs L^3 s^4 + f + asin(Q)), where:

So c(0) = Q, and the CTF is positive at low frequencies. The frequency -k that an element also stands for has the same CTF.

See also
insert_slices_operation
ctf_optics

Constructor & Destructor Documentation

◆ insert_ctf_slices_operation()

rexlib::em::insert_ctf_slices_operation::insert_ctf_slices_operation ( const gridding_window &  window,
const ctf_optics &  optics,
double  pixel_size 
)

Construct an insertion weighted by the CTF.

Parameters
windowThe window that spreads a sample over the voxels.
opticsThe optics of the microscope.
pixel_sizeThe size of a pixel of the images, in angstroms.
Exceptions
std::invalid_argumentWhen the pixel size is not finite and positive.

Member Function Documentation

◆ get_optics()

const ctf_optics & rexlib::em::insert_ctf_slices_operation::get_optics ( ) const
noexcept

Get the optics of the microscope.

Returns
const ctf_optics& The optics.

◆ get_pixel_size()

double rexlib::em::insert_ctf_slices_operation::get_pixel_size ( ) const
noexcept

Get the size of a pixel of the images.

Returns
double The size, in angstroms.

◆ get_window()

const gridding_window & rexlib::em::insert_ctf_slices_operation::get_window ( ) const
noexcept

Get the gridding window.

Returns
const gridding_window& The window.

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