Skip to content

Commit d8f757a

Browse files
committed
Merge pull request #537 from bpinsard/enh/fsl/flirt6
Enh/fsl/flirt6
2 parents 340b9a1 + d6195e9 commit d8f757a

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,13 @@ class FLIRTInputSpec(FSLCommandInputSpec):
407407
argstr='-datatype %s',
408408
desc='force output data type')
409409
cost = traits.Enum('mutualinfo', 'corratio', 'normcorr', 'normmi',
410-
'leastsq', 'labeldiff',
410+
'leastsq', 'labeldiff','bbr',
411411
argstr='-cost %s',
412412
desc='cost function')
413413
# XXX What is the difference between 'cost' and 'searchcost'? Are
414414
# these both necessary or do they map to the same variable.
415415
cost_func = traits.Enum('mutualinfo', 'corratio', 'normcorr', 'normmi',
416-
'leastsq', 'labeldiff',
416+
'leastsq', 'labeldiff','bbr',
417417
argstr='-searchcost %s',
418418
desc='cost function')
419419
uses_qform = traits.Bool(argstr='-usesqform',
@@ -475,6 +475,37 @@ class FLIRTInputSpec(FSLCommandInputSpec):
475475
verbose = traits.Int(argstr='-verbose %d',
476476
desc='verbose mode, 0 is least')
477477

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+
478509

479510
class FLIRTOutputSpec(TraitedSpec):
480511
out_file = File(exists=True,

0 commit comments

Comments
 (0)