plot_medial_axis#

plot_medial_axis(data, fig=None, pore_class=0, interactive=False, show_isosurface=None, mesh_kwargs=None, plotter_kwargs=None, notebook=False)[source]#

Plots an interactive visual with a medial axis and a 3D isosurface of given data.

Return type:

Plotter

Parameters:
  • data – A dataclass containing 3D labeled image data

  • fig – Pyvista plotter object

  • show_isosurface – List of isosurfaces to show. Default is single isosurface at average between maximum and minimum label values.

  • notebook – True for rendring in Jupyter notebook. Defaults to False.

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

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

Returns:

PyVista plotter object with added orthogonal slice mesh.

Return type:

pv.Plotter