Skip to content

Commit d6b2dfd

Browse files
committed
add maths.MaxImage for fslmaths -Tmax option
1 parent 800c535 commit d6b2dfd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

nipype/interfaces/fsl/maths.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,19 @@ class MeanImage(MathsCommand):
117117
input_spec = MeanImageInput
118118
_suffix = "_mean"
119119

120+
class MaxImageInput(MathsInput):
121+
122+
dimension = traits.Enum("T", "X", "Y", "Z", usedefault=True, argstr="-%smax", position=4,
123+
desc="dimension to max across")
124+
125+
126+
class MaxImage(MathsCommand):
127+
"""Use fslmaths to generate a max image across a given dimension.
128+
129+
"""
130+
input_spec = MaxImageInput
131+
_suffix = "_max"
132+
120133

121134
class IsotropicSmoothInput(MathsInput):
122135

0 commit comments

Comments
 (0)