orthogonal_slices#

orthogonal_slices(data, fig=None, show_slices=None, plotter_kwargs=None, mesh_kwargs=None, slider=False)[source]#

Plots 3 orthogonal slices of a 3D image.

Return type:

Plotter

Parameters:
  • data – A np array containing 3D image data

  • fig – Pyvista plotter object

  • show_slices – List of slices in x, y, z to show. Default is middle slice in each direction.

  • plotter_kwargs – Additional keyword arguments to pass to the plotter.

  • mesh_kwargs – Pyvista mesh keyword arguments to pass to the plotter.

Returns:

PyVista plotter object with added orthogonal slice mesh.

Return type:

pv.Plotter