25
25
iflogger = logging .getLogger ('interface' )
26
26
27
27
28
- < << << << HEAD
29
28
class WarpPointsInputSpec (BaseInterfaceInputSpec ):
30
29
points = File (exists = True , mandatory = True ,
31
30
desc = ('file containing the point set' ))
@@ -43,6 +42,7 @@ class WarpPointsOutputSpec(TraitedSpec):
43
42
44
43
45
44
class WarpPoints (BaseInterface ):
45
+
46
46
"""
47
47
Applies a displacement field to a point set in vtk
48
48
@@ -57,6 +57,7 @@ class WarpPoints(BaseInterface):
57
57
"""
58
58
input_spec = WarpPointsInputSpec
59
59
output_spec = WarpPointsOutputSpec
60
+ _redirect_x = True
60
61
61
62
def _gen_fname (self , in_file , suffix = 'generated' , ext = None ):
62
63
import os .path as op
@@ -114,7 +115,7 @@ def _run_interface(self, runtime):
114
115
ras2vox = np .linalg .inv (vox2ras )
115
116
origin = affine [0 :3 , 3 ]
116
117
voxpoints = np .array ([np .dot (ras2vox ,
117
- (p - origin )) for p in points ])
118
+ (p - origin )) for p in points ])
118
119
119
120
warps = []
120
121
for axis in warp_dims :
@@ -151,22 +152,12 @@ def _list_outputs(self):
151
152
return outputs
152
153
153
154
154
- class P2PDistanceInputSpec (BaseInterfaceInputSpec ):
155
- == == == =
156
155
class ComputeMeshWarpInputSpec (BaseInterfaceInputSpec ):
157
- > >> >> >> master
158
156
surface1 = File (exists = True , mandatory = True ,
159
157
desc = ('Reference surface (vtk format) to which compute '
160
158
'distance.' ))
161
159
surface2 = File (exists = True , mandatory = True ,
162
- << << << < HEAD
163
- desc = ("Test surface (vtk format) from which compute "
164
- "distance." ))
165
- weighting = traits .Enum ("none" , "surface" , usedefault = True ,
166
- desc = ('"none": no weighting is performed, '
167
- '"surface": edge distance is weighted by the'
168
- ' corresponding surface area' ))
169
- == == == =
160
+
170
161
desc = ('Test surface (vtk format) from which compute '
171
162
'distance.' ))
172
163
metric = traits .Enum ('euclidean' , 'sqeuclidean' , usedefault = True ,
@@ -180,7 +171,6 @@ class ComputeMeshWarpInputSpec(BaseInterfaceInputSpec):
180
171
'to surface2' )
181
172
out_file = File ('distance.npy' , usedefault = True ,
182
173
desc = 'numpy file keeping computed distances and weights' )
183
- >> >> >> > master
184
174
185
175
186
176
class ComputeMeshWarpOutputSpec (TraitedSpec ):
0 commit comments