@@ -398,13 +398,13 @@ class FLIRTInputSpec(FSLCommandInputSpec):
398
398
argstr = '-datatype %s' ,
399
399
desc = 'force output data type' )
400
400
cost = traits .Enum ('mutualinfo' , 'corratio' , 'normcorr' , 'normmi' ,
401
- 'leastsq' , 'labeldiff' ,
401
+ 'leastsq' , 'labeldiff' ,'bbr' ,
402
402
argstr = '-cost %s' ,
403
403
desc = 'cost function' )
404
404
# XXX What is the difference between 'cost' and 'searchcost'? Are
405
405
# these both necessary or do they map to the same variable.
406
406
cost_func = traits .Enum ('mutualinfo' , 'corratio' , 'normcorr' , 'normmi' ,
407
- 'leastsq' , 'labeldiff' ,
407
+ 'leastsq' , 'labeldiff' ,'bbr' ,
408
408
argstr = '-searchcost %s' ,
409
409
desc = 'cost function' )
410
410
uses_qform = traits .Bool (argstr = '-usesqform' ,
@@ -464,6 +464,37 @@ class FLIRTInputSpec(FSLCommandInputSpec):
464
464
verbose = traits .Int (argstr = '-verbose %d' ,
465
465
desc = 'verbose mode, 0 is least' )
466
466
467
+ # BBR options
468
+ wm_seg = File (
469
+ argstr = '-wmseg %s' ,
470
+ desc = 'white matter segmentation volume needed by BBR cost function' )
471
+ wmcoords = File (
472
+ argstr = '-wmcoords %s' ,
473
+ desc = 'white matter boundary coordinates for BBR cost function' )
474
+ wmnorms = File (
475
+ argstr = '-wmnorms %s' ,
476
+ desc = 'white matter boundary normals for BBR cost function' )
477
+ fieldmap = File (
478
+ argstr = '-fieldmap %s' ,
479
+ desc = 'fieldmap image in rads/s - must be already registered to the reference image' )
480
+ fieldmapmask = File (
481
+ argstr = '-fieldmapmask %s' ,
482
+ desc = 'mask for fieldmap image' )
483
+ pedir = traits .Int (
484
+ argstr = '-pedir %d' ,
485
+ desc = 'phase encode direction of EPI - 1/2/3=x/y/z & -1/-2/-3=-x/-y/-z' )
486
+ echospacing = traits .Float (
487
+ argstr = 'echospacing %f' ,
488
+ desc = 'value of EPI echo spacing - units of seconds' )
489
+ bbrtype = traits .Enum (
490
+ 'signed' , 'global_abs' , 'local_abs' ,
491
+ argstr = '-bbrtype %s' ,
492
+ desc = 'type of bbr cost function: signed [default], global_abs, local_abs' )
493
+ bbrslope = traits .Float (
494
+ argstr = '-bbrslope %f' ,
495
+ desc = 'value of bbr slope' )
496
+
497
+
467
498
468
499
class FLIRTOutputSpec (TraitedSpec ):
469
500
out_file = File (exists = True ,
0 commit comments