@@ -407,13 +407,13 @@ class FLIRTInputSpec(FSLCommandInputSpec):
407
407
argstr = '-datatype %s' ,
408
408
desc = 'force output data type' )
409
409
cost = traits .Enum ('mutualinfo' , 'corratio' , 'normcorr' , 'normmi' ,
410
- 'leastsq' , 'labeldiff' ,
410
+ 'leastsq' , 'labeldiff' ,'bbr' ,
411
411
argstr = '-cost %s' ,
412
412
desc = 'cost function' )
413
413
# XXX What is the difference between 'cost' and 'searchcost'? Are
414
414
# these both necessary or do they map to the same variable.
415
415
cost_func = traits .Enum ('mutualinfo' , 'corratio' , 'normcorr' , 'normmi' ,
416
- 'leastsq' , 'labeldiff' ,
416
+ 'leastsq' , 'labeldiff' ,'bbr' ,
417
417
argstr = '-searchcost %s' ,
418
418
desc = 'cost function' )
419
419
uses_qform = traits .Bool (argstr = '-usesqform' ,
@@ -475,6 +475,37 @@ class FLIRTInputSpec(FSLCommandInputSpec):
475
475
verbose = traits .Int (argstr = '-verbose %d' ,
476
476
desc = 'verbose mode, 0 is least' )
477
477
478
+ # BBR options
479
+ wm_seg = File (
480
+ argstr = '-wmseg %s' , min_ver = '5.0.0' ,
481
+ desc = 'white matter segmentation volume needed by BBR cost function' )
482
+ wmcoords = File (
483
+ argstr = '-wmcoords %s' , min_ver = '5.0.0' ,
484
+ desc = 'white matter boundary coordinates for BBR cost function' )
485
+ wmnorms = File (
486
+ argstr = '-wmnorms %s' , min_ver = '5.0.0' ,
487
+ desc = 'white matter boundary normals for BBR cost function' )
488
+ fieldmap = File (
489
+ argstr = '-fieldmap %s' , min_ver = '5.0.0' ,
490
+ desc = 'fieldmap image in rads/s - must be already registered to the reference image' )
491
+ fieldmapmask = File (
492
+ argstr = '-fieldmapmask %s' , min_ver = '5.0.0' ,
493
+ desc = 'mask for fieldmap image' )
494
+ pedir = traits .Int (
495
+ argstr = '-pedir %d' , min_ver = '5.0.0' ,
496
+ desc = 'phase encode direction of EPI - 1/2/3=x/y/z & -1/-2/-3=-x/-y/-z' )
497
+ echospacing = traits .Float (
498
+ argstr = '-echospacing %f' , min_ver = '5.0.0' ,
499
+ desc = 'value of EPI echo spacing - units of seconds' )
500
+ bbrtype = traits .Enum (
501
+ 'signed' , 'global_abs' , 'local_abs' ,
502
+ argstr = '-bbrtype %s' , min_ver = '5.0.0' ,
503
+ desc = 'type of bbr cost function: signed [default], global_abs, local_abs' )
504
+ bbrslope = traits .Float (
505
+ argstr = '-bbrslope %f' , min_ver = '5.0.0' ,
506
+ desc = 'value of bbr slope' )
507
+
508
+
478
509
479
510
class FLIRTOutputSpec (TraitedSpec ):
480
511
out_file = File (exists = True ,
0 commit comments