@@ -26,7 +26,7 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
26
26
extent = traits .Tuple ((traits .Int , traits .Int , traits .Int ),
27
27
argstr = '-extent %d,%d,%d' ,
28
28
desc = 'set the window size of the denoising filter. (default = 5,5,5)' )
29
- out_noise = File (name_template = '%s_noise ' ,
29
+ out_noisemap = File (name_template = '%s_noisemap ' ,
30
30
name_source = 'in_file' ,
31
31
keep_extension = True ,
32
32
argstr = '-noise %s' ,
@@ -41,7 +41,7 @@ class DWIDenoiseInputSpec(MRTrix3BaseInputSpec):
41
41
genfile = True )
42
42
43
43
class DWIDenoiseOutputSpec (TraitedSpec ):
44
- out_noise = File (desc = "the output noise map" , exists = True )
44
+ out_noisemap = File (desc = "the output noise map" , exists = True )
45
45
out_file = File (desc = "the output denoised DWI image" , exists = True )
46
46
47
47
class DWIDenoise (MRTrix3Base ):
@@ -87,28 +87,27 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
87
87
position = - 2 ,
88
88
mandatory = True ,
89
89
desc = 'input DWI image' )
90
- axes = InputMultiObject (
91
- traits .Int ,
92
- value = [0 ,1 ],
90
+ axes = traits .ListInt (
91
+ default_value = [0 ,1 ],
92
+ sep = ',' ,
93
+ minlen = 1 ,
94
+ maxlen = 4 ,
93
95
usedefault = True ,
94
- argstr = '-axes %s' , # how to define list?
96
+ argstr = '-axes %s' ,
95
97
desc = 'select the slice axes (default = 0,1)' )
96
- nshifts = InputMultiObject (
97
- traits .Int ,
98
- value = [20 ],
98
+ nshifts = traits .Int (
99
+ default_value = 20 ,
99
100
usedefault = True ,
100
101
argstr = '-nshifts %d' ,
101
102
desc = 'discretizaiton of subpixel spacing (default = 20)' )
102
- minW = InputMultiObject (
103
- traits .Int ,
104
- value = [1 ],
103
+ minW = traits .Int (
104
+ default_value = 1 ,
105
105
usedefault = True ,
106
106
argstr = '-minW %d' ,
107
107
desc = 'left border of window used for total variation (TV) computation '
108
108
'(default = 1)' )
109
- maxW = InputMultiObject (
110
- traits .Int ,
111
- value = [3 ],
109
+ maxW = traits .Int (
110
+ default_value = 3 ,
112
111
usedefault = True ,
113
112
argstr = '-maxW %d' ,
114
113
desc = 'right border of window used for total variation (TV) computation '
@@ -174,15 +173,16 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
174
173
desc = 'input DWI image' )
175
174
in_mask = File (
176
175
argstr = '-mask %s' ,
177
- desc = 'mask image' )
178
- ants = traits . Bool (
179
- True ,
176
+ desc = 'input mask image for bias field estimation ' )
177
+ _xor_inputs = ( 'use_ants' , 'use_fsl' )
178
+ use_ants = traits . Bool (
180
179
argstr = '-ants' ,
181
- desc = 'use ANTS N4 to estimate the inhomogeneity field' )
182
- fsl = traits . Bool (
183
- False ,
180
+ desc = 'use ANTS N4 to estimate the inhomogeneity field' ,
181
+ xor = _xor_inputs )
182
+ use_fsl = traits . Bool (
184
183
argstr = '-fsl' ,
185
184
desc = 'use FSL FAST to estimate the inhomogeneity field' ,
185
+ xor = _xor_inputs ,
186
186
min_ver = '5.0.10' )
187
187
# only one of either grad or fslgrad should be supplied
188
188
grad = File (
@@ -206,6 +206,7 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
206
206
genfile = True )
207
207
208
208
class DWIBiasCorrectOutputSpec (TraitedSpec ):
209
+ out_bias = File (desc = "the output estimated bias field" )
209
210
out_file = File (desc = "the output bias corrected DWI image" , exists = True )
210
211
211
212
class DWIBiasCorrect (MRTrix3Base ):
0 commit comments