get_planes#

get_planes(im, squeeze=True)[source]#

Extracts three planar images from the volumetric image, one for each principle axis. The planes are taken from the middle of the domain.

Parameters:
  • im (ndarray) – The volumetric image from which the 3 planar images are to be obtained

  • squeeze (boolean, optional) – If True (default) the returned images are 2D (i.e. squeezed). If False, the images are 1 element deep along the axis where the slice was obtained.

Returns:

planes – A list of 2D-images

Return type:

list

Examples

Click here to view online example.