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

Wedge.angles

The tilt angles.

Wedge.frequency_cutoff

Frequency cutoff for created mask.

Wedge.opening_axis

The projection axis, defaults to 2 (z).

Wedge.sampling_rate

The sampling rate, defaults to 1 Ångstrom / voxel.

Wedge.shape

The shape of the reconstruction volume.

Wedge.tilt_axis

Axis the plane is tilted over, defaults to 0 (x).

Wedge.weight_type

The type of weighting to apply, defaults to None.

Wedge.weights

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.