diff --git a/fsl/data/mghimage.py b/fsl/data/mghimage.py index a143e06ce1e3ce9a2367444c7e67408459e3cd36..be29b5cad5ed56c789f528b478b19d9823093bb9 100644 --- a/fsl/data/mghimage.py +++ b/fsl/data/mghimage.py @@ -12,6 +12,7 @@ Freesurfer ``mgh``/``mgz`` image files. import os.path as op import six +import numpy as np import nibabel as nib import fsl.utils.path as fslpath @@ -54,7 +55,7 @@ class MGHImage(fslimage.Image): name = 'MGH image' filename = None - data = image.get_data() + data = np.asanyarray(image.dataobj) xform = image.affine vox2surf = image.header.get_vox2ras_tkr()