Skip to content

Commit ee3c5dc

Browse files
committed
added maths.MaxImage examples
1 parent ee3813e commit ee3c5dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nipype/interfaces/fsl/maths.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ class MaxImageInput(MathsInput):
126126
class MaxImage(MathsCommand):
127127
"""Use fslmaths to generate a max image across a given dimension.
128128
129+
Examples
130+
--------
131+
from nipype.interfaces.fsl.maths import MaxImage
132+
maxer = MaxImage()
133+
maxer.inputs.in_file = "functional.nii"
134+
maxer.dimension = "T"
135+
maths.cmdline
136+
fslmaths functional.nii -Tmax functional_max.nii
137+
129138
"""
130139
input_spec = MaxImageInput
131140
_suffix = "_max"

0 commit comments

Comments
 (0)