36
36
class TVAdjustVoxSpInputSpec (CommandLineInputSpec ):
37
37
in_file = File (desc = "tensor volume to modify" , exists = True ,
38
38
mandatory = True , argstr = "-in %s" )
39
- out_file = File (genfile = True , desc = 'output path' ,
39
+ out_file = File (desc = 'output path' ,
40
40
argstr = "-out %s" , name_source = 'in_file' ,
41
41
name_template = '%s_avs' , keep_extension = True )
42
42
target_file = File (desc = 'target volume to match' ,
@@ -263,15 +263,19 @@ def _gen_filename(self, name):
263
263
class BinThreshInputSpec (CommandLineInputSpec ):
264
264
in_file = File (desc = 'Image to threshold/binarize' , exists = True ,
265
265
position = 0 , argstr = "%s" , mandatory = True )
266
- out_file = File (desc = '' , position = 1 , argstr = "%s" ,
266
+ out_file = File (desc = 'output path ' , position = 1 , argstr = "%s" ,
267
267
keep_extension = True , name_source = 'in_file' ,
268
268
name_template = '%s_thrbin' )
269
- lower_bound = traits .Float (0.01 , position = 2 , argstr = "%g" , mandatory = True )
270
- upper_bound = traits .Float (100 , position = 3 , argstr = "%g" , mandatory = True )
269
+ lower_bound = traits .Float (0.01 , position = 2 , argstr = "%g" , mandatory = True ,
270
+ desc = 'lower bound of binarization range' )
271
+ upper_bound = traits .Float (100 , position = 3 , argstr = "%g" , mandatory = True ,
272
+ desc = 'upper bound of binarization range' )
271
273
inside_value = traits .Float (1 , position = 4 , argstr = "%g" , usedefault = True ,
272
- mandatory = True )
274
+ mandatory = True , desc = 'value for voxels in '
275
+ 'binarization range' )
273
276
outside_value = traits .Float (0 , position = 5 , argstr = "%g" , usedefault = True ,
274
- mandatory = True )
277
+ mandatory = True , desc = 'value for voxels'
278
+ 'outside of binarization range' )
275
279
276
280
277
281
class BinThreshOutputSpec (TraitedSpec ):
@@ -282,20 +286,20 @@ class BinThresh(CommandLineDtitk):
282
286
"""
283
287
Binarizes an image
284
288
285
- Example
286
- -------
289
+ Example
290
+ -------
287
291
288
- >>> from nipype.interfaces import dtitk
289
- >>> node = dtitk.BinThresh()
290
- >>> node.inputs.in_file = 'im1.nii'
291
- >>> node.inputs.lower_bound = 0
292
- >>> node.inputs.upper_bound = 100
293
- >>> node.inputs.inside_value = 1
294
- >>> node.inputs.outside_value = 0
295
- >>> node.cmdline
296
- 'BinaryThresholdImageFilter im1.nii im1_thrbin.nii 0 100 1 0'
297
- >>> node.run() # doctest: +SKIP
298
- """
292
+ >>> from nipype.interfaces import dtitk
293
+ >>> node = dtitk.BinThresh()
294
+ >>> node.inputs.in_file = 'im1.nii'
295
+ >>> node.inputs.lower_bound = 0
296
+ >>> node.inputs.upper_bound = 100
297
+ >>> node.inputs.inside_value = 1
298
+ >>> node.inputs.outside_value = 0
299
+ >>> node.cmdline
300
+ 'BinaryThresholdImageFilter im1.nii im1_thrbin.nii 0 100 1 0'
301
+ >>> node.run() # doctest: +SKIP
302
+ """
299
303
300
304
input_spec = BinThreshInputSpec
301
305
output_spec = BinThreshOutputSpec
0 commit comments