@@ -45,48 +45,47 @@ class FillLesionsInputSpec(CommandLineInputSpec):
45
45
46
46
# Optional arguments
47
47
desc = "Dilate the mask <int> times (in voxels, by default 0)"
48
- in_dilation = traits .Int (desc = desc , argstr = '-dil %d' , mandatory = False )
48
+ in_dilation = traits .Int (desc = desc , argstr = '-dil %d' )
49
49
50
50
desc = 'Percentage of minimum number of voxels between patches <float> \
51
51
(by default 0.5).'
52
- match = traits .Float (desc = desc , argstr = '-match %f' , mandatory = False )
52
+ match = traits .Float (desc = desc , argstr = '-match %f' )
53
53
54
54
desc = 'Minimum percentage of valid voxels in target patch <float> \
55
55
(by default 0).'
56
- search = traits .Float (desc = desc , argstr = '-search %f' , mandatory = False )
56
+ search = traits .Float (desc = desc , argstr = '-search %f' )
57
57
58
58
desc = 'Smoothing by <float> (in minimal 6-neighbourhood voxels \
59
59
(by default 0.1)).'
60
- smooth = traits .Float (desc = desc , argstr = '-smo %f' , mandatory = False )
60
+ smooth = traits .Float (desc = desc , argstr = '-smo %f' )
61
61
62
62
desc = 'Search regions size respect biggest patch size (by default 4).'
63
- size = traits .Int (desc = desc , argstr = '-size %d' , mandatory = False )
63
+ size = traits .Int (desc = desc , argstr = '-size %d' )
64
64
65
65
desc = 'Patch cardinality weighting factor (by default 2).'
66
- cwf = traits .Float (desc = desc , argstr = '-cwf %f' , mandatory = False )
66
+ cwf = traits .Float (desc = desc , argstr = '-cwf %f' )
67
67
68
68
desc = 'Give a binary mask with the valid search areas.'
69
- bin_mask = File (desc = desc , argstr = '-mask %s' , mandatory = False )
69
+ bin_mask = File (desc = desc , argstr = '-mask %s' )
70
70
71
71
desc = "Guizard et al. (FIN 2015) method, it doesn't include the \
72
72
multiresolution/hierarchical inpainting part, this part needs to be done \
73
73
with some external software such as reg_tools and reg_resample from NiftyReg. \
74
74
By default it uses the method presented in Prados et al. (Neuroimage 2016)."
75
- other = traits .Bool (desc = desc , argstr = '-other' , mandatory = False )
75
+ other = traits .Bool (desc = desc , argstr = '-other' )
76
+
77
+ use_2d = traits .Bool (desc = 'Uses 2D patches in the Z axis, by default 3D.' ,
78
+ argstr = '-2D' )
76
79
77
80
debug = traits .Bool (desc = 'Save all intermidium files (by default OFF).' ,
78
- argstr = '-debug' , mandatory = False )
81
+ argstr = '-debug' )
79
82
80
83
desc = 'Set output <datatype> (char, short, int, uchar, ushort, uint, \
81
84
float, double).'
82
- out_datatype = traits .String (desc = desc , argstr = '-odt %s' , mandatory = False )
85
+ out_datatype = traits .String (desc = desc , argstr = '-odt %s' )
83
86
84
87
verbose = traits .Bool (desc = 'Verbose (by default OFF).' ,
85
- argstr = '-v' , mandatory = False )
86
-
87
- # Set the number of omp thread to use
88
- omp_core = traits .Int (desc = 'Number of openmp thread to use. Default: 4' ,
89
- argstr = '-omp %d' )
88
+ argstr = '-v' )
90
89
91
90
92
91
class FillLesionsOutputSpec (TraitedSpec ):
0 commit comments