@@ -70,13 +70,27 @@ class RobustFOVInputSpec(FSLCommandInputSpec):
70
70
out_roi = File (desc = "ROI volume output name" , argstr = "-r %s" ,
71
71
name_source = ['in_file' ], hash_files = False ,
72
72
name_template = '%s_ROI' )
73
+ brainsize = traits .Int (170 , desc = 'size of brain in z-dimension (default 170mm/150mm)' ,
74
+ argstr = '-b %d' , usedefault = False )
75
+ out_transform = File (desc = "Transformation matrix in_file to out_roi output name" , argstr = "-m %s" ,
76
+ name_source = ['in_file' ], hash_files = False ,
77
+ name_template = '%s_to_ROI' , usedefault = False , mandatatory = False )
73
78
74
79
75
80
class RobustFOVOutputSpec (TraitedSpec ):
76
81
out_roi = File (exists = True , desc = "ROI volume output name" )
82
+ out_transform = File (exists = True , desc = "Transformation matrix in_file to out_roi output name" )
77
83
78
84
79
85
class RobustFOV (FSLCommand ):
86
+ """robustfov command has been introduced in FSL5. It automatically crops an
87
+ image removing lower head and neck.
88
+ Input of brainsize in optional (default 170mm/150mm)
89
+ Output of ROI and transformation matrix is optional.
90
+ Interface is stable 5.0.0 to 5.0.9
91
+ But default brainsize changed from 150mm to 170mm.
92
+ """
93
+
80
94
_cmd = 'robustfov'
81
95
input_spec = RobustFOVInputSpec
82
96
output_spec = RobustFOVOutputSpec
0 commit comments