mdreg.animation#

mdreg.animation(array, path=None, filename='animation', vmin=None, vmax=None, slice=None, title='', interval=250, show=False)[source]#

Produce an animation of a 3D image.

Parameters:
  • array (numpy.array) – The 3D image to animate.

  • path (str, optional) – The path to save the animation. The default is None.

  • filename (str, optional) – The filename of the animation. The default is ‘animation’.

  • vmin (float, optional) – The minimum value for the colormap. The default is None.

  • vmax (float, optional) – The maximum value for the colormap. The default is None.

  • slice (int, optional) – The slice to plot for 3D data. The default is None which plots all slices.

  • title (str, optional) – The title of the animation to be rendered on the figure. The default is ‘’.

  • interval (int, optional) – The interval between frames. The default is 250ms.

  • show (bool, optional) – Whether to display the animation. The default is False.

Examples using mdreg.animation#

Customizing the coregistration

Customizing the coregistration

3D Variable Flip Angle (Linear)

3D Variable Flip Angle (Linear)