File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -157,31 +157,35 @@ class Smooth(FSLCommand):
157
157
"""
158
158
Use fslmaths to smooth the image
159
159
160
- Example
161
- -------
162
-
163
- >>> from nipype.interfaces.fsl import Smooth
164
- >>> sm = Smooth()
165
- >>> sm.inputs.in_file = 'functional2.nii'
166
- >>> sm.cmdline
167
- Traceback (most recent call last):
168
- ...
169
- RuntimeError: either sigma (in mm) or fwhm need be specified.
160
+ Examples
161
+ --------
170
162
171
163
Setting the kernel width using sigma:
164
+
172
165
>>> sm = Smooth()
173
166
>>> sm.inputs.in_file = 'functional2.nii'
174
167
>>> sm.inputs.sigma = 8.0
175
168
>>> sm.cmdline #doctest: +ELLIPSIS
176
169
'fslmaths functional2.nii -kernel gauss 8.000 -fmean functional2_smooth.nii.gz'
177
170
178
171
Setting the kernel width using fwhm:
172
+
179
173
>>> sm = Smooth()
180
174
>>> sm.inputs.in_file = 'functional2.nii'
181
175
>>> sm.inputs.fwhm = 8.0
182
176
>>> sm.cmdline #doctest: +ELLIPSIS
183
177
'fslmaths functional2.nii -kernel gauss 3.397 -fmean functional2_smooth.nii.gz'
184
178
179
+ One of sigma or fwhm must be set:
180
+
181
+ >>> from nipype.interfaces.fsl import Smooth
182
+ >>> sm = Smooth()
183
+ >>> sm.inputs.in_file = 'functional2.nii'
184
+ >>> sm.cmdline
185
+ Traceback (most recent call last):
186
+ ...
187
+ RuntimeError: either sigma (in mm) or fwhm need be specified.
188
+
185
189
"""
186
190
187
191
input_spec = SmoothInputSpec
You can’t perform that action at this time.
0 commit comments