Skip to content

Commit 575520d

Browse files
committed
add RobustFOV
1 parent 3444b75 commit 575520d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

nipype/interfaces/fsl/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
ImageStats, FilterRegressor, Overlay, Slicer,
1717
PlotTimeSeries, PlotMotionParams, ConvertXFM,
1818
SwapDimensions, PowerSpectrum, Reorient2Std,
19-
Complex, InvWarp, WarpUtils, ConvertWarp, WarpPoints, WarpPointsToStd)
19+
Complex, InvWarp, WarpUtils, ConvertWarp, WarpPoints,
20+
WarpPointsToStd, RobustFOV)
2021

2122
from .epi import (PrepareFieldmap, TOPUP, ApplyTOPUP, Eddy, EPIDeWarp,
2223
SigLoss, EddyCorrect, EpiReg)

nipype/interfaces/fsl/utils.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,24 @@
3131
warn = warnings.warn
3232
warnings.filterwarnings('always', category=UserWarning)
3333

34+
class RobustFOVInputSpec(FSLCommandInputSpec):
35+
in_file = File(exists=True,
36+
desc='input filename',
37+
argstr='-i %s', position=0, mandatory=True)
38+
out_roi = File(desc="ROI volume output name", argstr="-r %s",
39+
name_source=['in_file'], hash_files=False,
40+
name_template='%s_ROI')
41+
42+
43+
class RobustFOVOutputSpec(TraitedSpec):
44+
out_roi = File(exists=True, desc="ROI volume output name")
45+
46+
47+
class RobustFOV(FSLCommand):
48+
_cmd = 'robustfov'
49+
input_spec = RobustFOVInputSpec
50+
output_spec = RobustFOVOutputSpec
51+
3452

3553
class ImageMeantsInputSpec(FSLCommandInputSpec):
3654
in_file = File(exists=True,

0 commit comments

Comments
 (0)