tomodrgn.utils.zero_sphere#

zero_sphere(vol: ndarray) ndarray[source]#

Set volume values outside of a sphere inscribed within a cube to zero.

Parameters:

vol – Volume array to be modified, shape (boxsize, boxsize, boxsize).

Returns:

Volume array after setting corner values to zero, shape (boxsize, boxsize, boxsize).