pwem.wizards.wizards_3d.mask_volume_wizard module

class pwem.wizards.wizards_3d.mask_volume_wizard.MaskVolumeWizard(filename)[source]

Bases: object

Create a mask for a volume interactively. Masks currently implemented: - Spherical mask

changeThreshold(threshold)[source]
change_view(event)[source]
downsamplingPC(voxel_size)[source]
get_sphere_params(mass_center=True)[source]

Return x,y,z,r array. Two possible conventions are implemented: - Bottom Left Corner (All Coordinates positive) - Center of Mass (Coordinates can be positive or negative) – Default

initializePlot()[source]
is_window_closed()[source]
on_release(event)[source]
plotScatter()[source]
plot_sphere(radius)[source]
press_shift(event)[source]
release_shift(event)[source]
remove_outliers()[source]
set_axes_equal(ax: Axes)[source]

Set 3D plot axes to equal scale.

Make axes of 3D plot have equal scale so that spheres appear as spheres and cubes as cubes. Required since ax.axis(‘equal’) and ax.set_aspect(‘equal’) don’t work on 3D.