NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.funcs.concat_images

Next topic

nibabel.funcs.squeeze_image

This Page

Reggie -- the one

nibabel.funcs.four_to_three

nibabel.funcs.four_to_three(img)

Create 3D images from 4D image by slicing over last axis

Parameters :

img : image

4D image instance of some class with methods get_data, get_header and get_affine, and a class constructor allowing Klass(data, affine, header)

Returns :

imgs : list

list of 3D images