File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -507,6 +507,33 @@ class Despike(AFNICommand):
507
507
output_spec = AFNICommandOutputSpec
508
508
509
509
510
+ class AutomaskInputSpec (AFNICommandInputSpec ):
511
+ in_file = File (desc = 'input file to 3dAutomask' ,
512
+ argstr = '%s' ,
513
+ position = - 1 ,
514
+ mandatory = True ,
515
+ exists = True ,
516
+ copyfile = False )
517
+
518
+ out_file = File (name_template = "%s_mask" , desc = 'output image file name' ,
519
+ argstr = '-prefix %s' , name_source = "in_file" )
520
+
521
+ brain_file = File (name_template = "%s_masked" ,
522
+ desc = "output file from 3dAutomask" ,
523
+ argstr = '-apply_prefix %s' ,
524
+ name_source = "in_file" )
525
+
526
+ clfrac = traits .Float (desc = 'sets the clip level fraction' +
527
+ ' (must be 0.1-0.9). ' +
528
+ 'A small value will tend to make the mask larger [default = 0.5].' ,
529
+ argstr = "-clfrac %s" )
530
+
531
+ dilate = traits .Int (desc = 'dilate the mask outwards' ,
532
+ argstr = "-dilate %s" )
533
+
534
+ erode = traits .Int (desc = 'erode the mask inwards' ,
535
+ argstr = "-erode %s" )
536
+
510
537
511
538
class AutomaskOutputSpec (TraitedSpec ):
512
539
out_file = File (desc = 'mask file' ,
You can’t perform that action at this time.
0 commit comments