Skip to content

Commit 4f1dc62

Browse files
committed
Add post-6.0 mris_expand -intensity option
1 parent ad2baf7 commit 4f1dc62

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

nipype/interfaces/freesurfer/tests/test_auto_MRIsExpand.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def test_MRIsExpand_inputs():
3737
spring=dict(argstr='-S %g',
3838
),
3939
subjects_dir=dict(),
40+
target_intensity=dict(argstr='-intensity %g %s',
41+
),
4042
terminal_output=dict(nohash=True,
4143
),
4244
thickness=dict(argstr='-thickness',

nipype/interfaces/freesurfer/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,6 +2923,12 @@ class MRIsExpandInputSpec(FSTraitedSpec):
29232923
nsurfaces = traits.Int(
29242924
argstr='-N %d',
29252925
desc='Number of surfacces to write during expansion')
2926+
# Requires dev version
2927+
# https://github.com/freesurfer/freesurfer/blob/9730cb9/mris_expand/mris_expand.c
2928+
target_intensity = traits.Tuple(
2929+
traits.Float, traits.File(exists=True),
2930+
argstr='-intensity %g %s',
2931+
desc='Tuple of intensity and brain volume to crop to target intensity')
29262932

29272933

29282934
class MRIsExpandOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)