6
6
# @Author: oesteban - [email protected]
7
7
# @Date: 2014-06-02 12:06:50
8
8
# @Last Modified by: oesteban
9
- # @Last Modified time: 2014-06-17 10: 19:23
9
+ # @Last Modified time: 2014-08-14 19:04:57
10
10
"""
11
11
Interfaces to perform image registrations and to apply the resulting
12
12
displacement maps to images and points.
18
18
19
19
from ..base import (CommandLine , CommandLineInputSpec , isdefined ,
20
20
TraitedSpec , File , traits , InputMultiPath )
21
-
22
-
23
21
from base import ElastixBaseInputSpec
24
22
25
23
from ... import logging
@@ -31,10 +29,8 @@ class RegistrationInputSpec(ElastixBaseInputSpec):
31
29
desc = 'fixed image' )
32
30
moving_image = File (exists = True , mandatory = True , argstr = '-m %s' ,
33
31
desc = 'moving image' )
34
-
35
32
parameters = InputMultiPath (File (exists = True ), mandatory = True , argstr = '-p %s...' ,
36
33
desc = 'parameter file, elastix handles 1 or more -p' )
37
-
38
34
fixed_mask = File (exists = True , argstr = '-fMask %s' , desc = 'mask for fixed image' )
39
35
moving_mask = File (exists = True , argstr = '-mMask %s' , desc = 'mask for moving image' )
40
36
initial_transform = File (exists = True , argstr = '-t0 %s' ,
@@ -51,7 +47,8 @@ class RegistrationOutputSpec(TraitedSpec):
51
47
52
48
53
49
class Registration (CommandLine ):
54
- """Elastix nonlinear registration interface
50
+ """
51
+ Elastix nonlinear registration interface
55
52
56
53
Example
57
54
-------
@@ -170,16 +167,18 @@ class AnalyzeWarpInputSpec(ElastixBaseInputSpec):
170
167
171
168
172
169
class AnalyzeWarpOutputSpec (TraitedSpec ):
173
- disp_field = File (exists = True , desc = 'displacements field' )
174
- jacdet_map = File (exists = True , desc = 'det(Jacobian) map' )
175
- jacmat_map = File (exists = True , desc = 'Jacobian matrix map' )
170
+ disp_field = File (desc = 'displacements field' )
171
+ jacdet_map = File (desc = 'det(Jacobian) map' )
172
+ jacmat_map = File (desc = 'Jacobian matrix map' )
176
173
177
174
class AnalyzeWarp (CommandLine ):
178
- """Use `transformix` to get details from the input transform (generate
175
+ """
176
+ Use transformix to get details from the input transform (generate
179
177
the corresponding deformation field, generate the determinant of the
180
178
Jacobian map or the Jacobian map itself)
181
179
182
- Example::
180
+ Example
181
+ -------
183
182
184
183
>>> from nipype.interfaces.elastix import AnalyzeWarp
185
184
>>> reg = AnalyzeWarp()
0 commit comments