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 | Static Public Member Functions | List of all members
rexlib::em::gridding_window Class Reference

Separable window that spreads a sample over the voxels of a grid. More...

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

Public Member Functions

gridding_profile get_profile () const noexcept
 Get the profile of the window.
 
double get_half_width () const noexcept
 Get the half-width of the window.
 
double get_shape () const noexcept
 Get the shape of a Kaiser-Bessel window.
 

Static Public Member Functions

static gridding_window nearest () noexcept
 Get the window of nearest-neighbour gridding.
 
static gridding_window linear () noexcept
 Get the window of trilinear gridding.
 
static gridding_window kaiser_bessel (double half_width, double shape)
 Get a Kaiser-Bessel window.
 

Detailed Description

Separable window that spreads a sample over the voxels of a grid.

A sample at the continuous position K adds to the voxel g with the weight phi(g_x - K_x) phi(g_y - K_y) phi(g_z - K_z), where phi is the one-dimensional window of the profile. A voxel at a distance of the half-width or more along any axis receives nothing.

See also
gridding_profile

Member Function Documentation

◆ get_half_width()

double rexlib::em::gridding_window::get_half_width ( ) const
noexcept

Get the half-width of the window.

Returns
double The half-width, in voxels.

◆ get_profile()

gridding_profile rexlib::em::gridding_window::get_profile ( ) const
noexcept

Get the profile of the window.

Returns
gridding_profile The profile.

◆ get_shape()

double rexlib::em::gridding_window::get_shape ( ) const
noexcept

Get the shape of a Kaiser-Bessel window.

Returns
double The shape beta. 0 for the other profiles.

◆ kaiser_bessel()

static gridding_window rexlib::em::gridding_window::kaiser_bessel ( double  half_width,
double  shape 
)
static

Get a Kaiser-Bessel window.

Parameters
half_widthThe half-width w of the window, in voxels.
shapeThe shape beta of the window. 0 gives a box of half-width w.
Returns
gridding_window The window.
Exceptions
std::invalid_argumentWhen the half-width is not finite and positive, or the shape is not finite and 0 or more.

◆ linear()

static gridding_window rexlib::em::gridding_window::linear ( )
staticnoexcept

Get the window of trilinear gridding.

Returns
gridding_window A triangle of half-width 1.

◆ nearest()

static gridding_window rexlib::em::gridding_window::nearest ( )
staticnoexcept

Get the window of nearest-neighbour gridding.

Returns
gridding_window A box of half-width 1/2.

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