Preprocessor.continuous_wedge_mask#
- Preprocessor.continuous_wedge_mask(start_tilt, stop_tilt, shape, opening_axis=0, tilt_axis=2, infinite_plane=True, omit_negative_frequencies=True)[source]#
Generate a wedge in a given shape based on specified tilt angles and axis. The DC component of the filter is at the origin.
- Parameters:
- start_tiltfloat
Starting tilt angle in degrees, e.g. a stage tilt of 70 degrees would yield a start_tilt value of 70.
- stop_tiltfloat
Ending tilt angle in degrees, , e.g. a stage tilt of -70 degrees would yield a stop_tilt value of 70.
- tilt_axisint
Axis that the plane is tilted over. - 0 for Z-axis - 1 for Y-axis - 2 for X-axis
- opening_axisint
Axis running through the void defined by the wedge. - 0 for Z-axis - 1 for Y-axis - 2 for X-axis
- shapeTuple of ints
Shape of the output wedge array.
- omit_negative_frequenciesbool, optional
Whether the wedge mask should omit negative frequencies, i.e. be applicable to symmetric Fourier transforms (see
numpy.fft.fftn
)- infinite_planebool, optional
Whether the plane should be considered to be larger than the shape. In this case the output wedge mask fill have no spheric component.
- Returns:
- NDArray
Array of the specified shape with the wedge created based on the tilt angles.
See also