Skip to content

Commit b71f834

Browse files
author
bpinsard
committed
adding missing options to interfaces.afni.Resample
1 parent 2a2da80 commit b71f834

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,18 @@ class ResampleInputSpec(AFNICommandInputSpec):
279279
orientation = traits.Str(desc='new orientation code',
280280
argstr='-orient %s')
281281

282+
resample_mode = traits.Enum('NN', 'Li', 'Cu', 'Bk',
283+
argstr='-rmode %s',
284+
desc="resampling method from set {'NN', 'Li', 'Cu', 'Bk'}. These are for 'Nearest Neighbor', 'Linear', 'Cubic' and 'Blocky' interpolation, respectively. Default is NN.")
285+
286+
voxel_size = traits.Tuple(*[traits.Float()]*3,
287+
argstr='-dxyz %f %f %f',
288+
desc="resample to new dx, dy and dz")
289+
290+
master = traits.File(argstr='-master %s',
291+
desc='align dataset grid to a reference file')
292+
293+
282294

283295
class Resample(AFNIBaseCommand):
284296
"""Resample or reorient an image using AFNI 3dresample command

0 commit comments

Comments
 (0)