Skip to content

Commit c216bcf

Browse files
committed
Merge branch 'afni/resample'
Conflicts: CHANGES nipype/interfaces/afni/tests/test_preprocess.py
2 parents c79eff1 + ead7639 commit c216bcf

File tree

3 files changed

+236
-193
lines changed

3 files changed

+236
-193
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Next release
77
fieldmaps. Updated eddy_correct pipeline to support both dMRI and fMRI, and new parameters.
88
* ENH: Minor improvements to FSL's FUGUE and FLIRT interfaces
99
* ENH: Added optional dilation of parcels in cmtk.Parcellate
10+
* ENH: Interpolation mode added to afni.Resample
1011

1112
Release 0.7.0 (Dec 18, 2012)
1213
============================

nipype/interfaces/afni/preprocess.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,17 @@ class ResampleInputSpec(AFNICommandInputSpec):
282282
orientation = traits.Str(desc='new orientation code',
283283
argstr='-orient %s')
284284

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

286297
class Resample(AFNICommand):
287298
"""Resample or reorient an image using AFNI 3dresample command

0 commit comments

Comments
 (0)