@@ -45,48 +45,47 @@ class FillLesionsInputSpec(CommandLineInputSpec):
4545
4646 # Optional arguments
4747 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' )
4949
5050 desc = 'Percentage of minimum number of voxels between patches <float> \
5151 (by default 0.5).'
52- match = traits .Float (desc = desc , argstr = '-match %f' , mandatory = False )
52+ match = traits .Float (desc = desc , argstr = '-match %f' )
5353
5454 desc = 'Minimum percentage of valid voxels in target patch <float> \
5555 (by default 0).'
56- search = traits .Float (desc = desc , argstr = '-search %f' , mandatory = False )
56+ search = traits .Float (desc = desc , argstr = '-search %f' )
5757
5858 desc = 'Smoothing by <float> (in minimal 6-neighbourhood voxels \
5959 (by default 0.1)).'
60- smooth = traits .Float (desc = desc , argstr = '-smo %f' , mandatory = False )
60+ smooth = traits .Float (desc = desc , argstr = '-smo %f' )
6161
6262 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' )
6464
6565 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' )
6767
6868 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' )
7070
7171 desc = "Guizard et al. (FIN 2015) method, it doesn't include the \
7272 multiresolution/hierarchical inpainting part, this part needs to be done \
7373 with some external software such as reg_tools and reg_resample from NiftyReg. \
7474 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' )
7679
7780 debug = traits .Bool (desc = 'Save all intermidium files (by default OFF).' ,
78- argstr = '-debug' , mandatory = False )
81+ argstr = '-debug' )
7982
8083 desc = 'Set output <datatype> (char, short, int, uchar, ushort, uint, \
8184 float, double).'
82- out_datatype = traits .String (desc = desc , argstr = '-odt %s' , mandatory = False )
85+ out_datatype = traits .String (desc = desc , argstr = '-odt %s' )
8386
8487 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' )
9089
9190
9291class FillLesionsOutputSpec (TraitedSpec ):
0 commit comments