diff --git a/fsl/utils/image/resample.py b/fsl/utils/image/resample.py index 91e79e6c0416cc01187bc4c636f59ec56aa23668..8e223c5cd53ae94c4a8c9a8f5669b6f34f194385 100644 --- a/fsl/utils/image/resample.py +++ b/fsl/utils/image/resample.py @@ -91,9 +91,9 @@ def resample(image, dtype=None, order=1, smooth=True, - origin='centre', + origin=None, matrix=None, - mode='nearest', + mode=None, cval=0): """Returns a copy of the data in the ``image``, resampled to the specified ``newShape``. @@ -164,6 +164,8 @@ def resample(image, if sliceobj is None: sliceobj = slice(None) if dtype is None: dtype = image.dtype + if origin is None: dtype = 'centre' + if mode is None: mode = 'nearest' if origin == 'center': origin = 'centre' if origin not in ('centre', 'corner'):