pyvista.NIFTIReader#

class NIFTIReader(*args, **kwargs)[source]#

NIFTI Reader for .nii and .nii.gz files.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> filename = examples.download_brain_atlas_with_sides(load=False)
>>> filename.split("/")[-1]  # omit the path
'avg152T1_RL_nifti.nii.gz'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-NIFTIReader-1_00_00.png

Methods

Attributes