Wedge#
- class Wedge(shape=None, angles=None, weights=None, tilt_axis=0, opening_axis=2, weight_type=None, frequency_cutoff=0.5, sampling_rate=1)[source]#
Bases:
ComposableFilter
Generate wedge mask for tomographic data.
Attributes
The tilt angles.
Frequency cutoff for created mask.
The projection axis, defaults to 2 (z).
The sampling rate, defaults to 1 Ångstrom / voxel.
The shape of the reconstruction volume.
Axis the plane is tilted over, defaults to 0 (x).
The type of weighting to apply, defaults to None.
The weights corresponding to each tilt angle.
Methods
Wedge.__call__
(**kwargs)Returns a Wedge stack of chosen parameters with DC component in the center.
Wedge.from_file
(filename)Generate a
Wedge
instance by reading tilt angles and weights.Wedge.weight_angle
(shape, weights, angles, ...)Generate weighted wedges based on the cosine of the current angle.
Wedge.weight_grigorieff
(shape, opening_axis, ...)Generate weighted wedges based on the formalism introduced in [Re1299e4ba496-1].
Wedge.weight_relion
(shape, opening_axis, ...)Generate weighted wedges based on the RELION 1.4 formalism, weighting each angle using the cosine of the angle and a Gaussian lowpass filter computed with respect to the exposure per angstrom.