We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6750f15 commit e4b18c6Copy full SHA for e4b18c6
examples/dmri_camino_dti.py
@@ -47,6 +47,7 @@ def get_data_dims(volume):
47
import nibabel as nb
48
if isinstance(volume, list):
49
volume = volume[0]
50
+ nii = nb.load(volume)
51
hdr = nii.header
52
datadims = hdr.get_data_shape()
53
return [int(datadims[0]), int(datadims[1]), int(datadims[2])]
0 commit comments