imshow_mri

imshow_mri(data, img: SpatialImage, vox: tuple[int, int, int], xyz: dict, suptitle: str = '')[source][source]

Show an MRI slice with a voxel annotated.

Parameters:
  • data (np.ndarray) – The data to plot

  • img (nib.spatialimages.SpatialImage) – The image to plot

  • vox (tuple[int, int, int]) – The voxel to annotate

  • xyz (dict) – The xyz coordinates of the voxel

  • suptitle (str, optional) – The title of the plot, by default “”

Returns:

fig, ax – The figure and axes of the plot

Return type:

matplotlib.pyplot.Figure, matplotlib.pyplot.Axes