etspy.utils.weight_stack(stack: TomoStack, accuracy: 'low' | 'medium' | 'high' = 'medium') TomoStack[source]

Apply a weighting window to a stack perpendicular to the tilt axis.

This weighting is useful for reducing the effects of mass introduced at the edges of as stack when determining alignments based on the center of mass. As described in:

T. Sanders. Physically motivated global alignment method for electron tomography, Advanced Structural and Chemical Imaging vol. 1 (2015) pp 1-11. https://doi.org/10.1186/s40679-015-0005-7

Parameters:
stack: TomoStack

The stack to be weighted.

accuracy: 'low' | 'medium' | 'high' = 'medium'

A string indicating the accuracy level for weighting. Options are: ‘low’, ‘medium’ (default), or ‘high’.

Returns:

stackw – The weighted version of the input stack.

Return type:

TomoStack