/
converters.py
53 lines (38 loc) · 1.42 KB
/
converters.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
# -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import (
CommandLine,
CommandLineInputSpec,
SEMLikeCommandLine,
TraitedSpec,
File,
Directory,
traits,
isdefined,
InputMultiPath,
OutputMultiPath,
)
import os
class BSplineToDeformationFieldInputSpec(CommandLineInputSpec):
tfm = File(exists=True, argstr="--tfm %s")
refImage = File(exists=True, argstr="--refImage %s")
defImage = traits.Either(
traits.Bool, File(), hash_files=False, argstr="--defImage %s"
)
class BSplineToDeformationFieldOutputSpec(TraitedSpec):
defImage = File(exists=True)
class BSplineToDeformationField(SEMLikeCommandLine):
"""title: BSpline to deformation field
category: Legacy.Converters
description: Create a dense deformation field from a bspline+bulk transform.
version: 0.1.0.$Revision: 2104 $(alpha)
documentation-url: http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/BSplineToDeformationField
contributor: Andrey Fedorov (SPL, BWH)
acknowledgements: This work is funded by NIH grants R01 CA111288 and U01 CA151261.
"""
input_spec = BSplineToDeformationFieldInputSpec
output_spec = BSplineToDeformationFieldOutputSpec
_cmd = "BSplineToDeformationField "
_outputs_filenames = {"defImage": "defImage.nii"}