trx.viz#

Optional 3D visualization using FURY/VTK.

Attributes#

Functions#

display(volume[, volume_affine, streamlines, title, ...])

Display a volume with optional streamlines using fury.

Module Contents#

trx.viz.fury_available = True[source]#
trx.viz.display(volume, volume_affine=None, streamlines=None, title='FURY', display_bounds=True)[source]#

Display a volume with optional streamlines using fury.

Parameters:
volumenp.ndarray

3D volume to display.

volume_affinenp.ndarray or None, optional

Affine matrix for the volume; None assumes identity.

streamlinessequence or None, optional

Streamlines to render as lines.

titlestr, optional

Window title.

display_boundsbool, optional

If True, draw bounding box and coordinate annotations.

Returns:
None

Opens an interactive visualization window when fury is available.