We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d34340f commit 925d5f9Copy full SHA for 925d5f9
nibabel/freesurfer/mghformat.py
@@ -282,6 +282,15 @@ def set_zooms(self, zooms):
282
if len(zooms) == 4:
283
hdr['tr'] = zooms[3]
284
285
+ def get_norm_zooms(self, raise_unknown=False):
286
+ ''' Get zooms in mm/s units '''
287
+ zooms = self.get_zooms()
288
+
289
+ if len(zooms) == 4:
290
+ zooms = zooms[:3] + (zooms[3] / 1000)
291
292
+ return zooms
293
294
def get_data_shape(self):
295
''' Get shape of data
296
'''
0 commit comments