Skip to content

Commit 0749b1e

Browse files
authored
Update maths.py
1 parent 48eb213 commit 0749b1e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

nipype/interfaces/fsl/maths.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ def _format_arg(self, name, spec, value):
103103
return arg
104104
return super(Threshold, self)._format_arg(name, spec, value)
105105

106+
class StdImageInput(MathsInput):
107+
108+
dimension = traits.Enum("T", "X", "Y", "Z", usedefault=True, argstr="-%sTstd", position=4,
109+
desc="dimension to standard deviate across")
110+
111+
112+
class StdImage(MathsCommand):
113+
"""Use fslmaths to generate a standard deviation in an image across a given dimension.
114+
"""
115+
input_spec = StdImageInput
116+
_suffix = "_std"
106117

107118
class MeanImageInput(MathsInput):
108119

0 commit comments

Comments
 (0)