Simple script to display an image's metadata.


In [1]:
medpy_info.py resources/flair.nii.gz


Informations obtained from image header:
header type=<class 'nibabel.nifti1.Nifti1Image'>
voxel spacing=(1.0, 1.0)
offset=(-0.0, -0.0)

Informations obtained from image array:
datatype=float32,dimensions=2,shape=(181, 217)
first and last element: 0.0 / 0.0

That's it. Here's the image itself for you to know what you are looking at.


In [ ]: