|
6 | 6 | # @Author: oesteban - code@oscaresteban.es |
7 | 7 | # @Date: 2014-06-02 12:06:50 |
8 | 8 | # @Last Modified by: oesteban |
9 | | -# @Last Modified time: 2014-08-14 19:04:57 |
| 9 | +# @Last Modified time: 2014-09-01 21:03:57 |
10 | 10 | """ |
11 | 11 | Interfaces to perform image registrations and to apply the resulting |
12 | 12 | displacement maps to images and points. |
@@ -60,6 +60,8 @@ class Registration(CommandLine): |
60 | 60 | >>> reg.inputs.parameters = ['elastix.txt'] |
61 | 61 | >>> reg.cmdline |
62 | 62 | 'elastix -f fixed1.nii -m moving1.nii -out ./ -p elastix.txt' |
| 63 | +
|
| 64 | +
|
63 | 65 | """ |
64 | 66 |
|
65 | 67 | _cmd = 'elastix' |
@@ -137,17 +139,21 @@ class ApplyWarpOutputSpec(TraitedSpec): |
137 | 139 | warped_file = File(desc='input moving image warped to fixed image') |
138 | 140 |
|
139 | 141 | class ApplyWarp(CommandLine): |
140 | | - """Use `transformix` to apply a transform on an input image. |
| 142 | + """ |
| 143 | + Use ``transformix`` to apply a transform on an input image. |
141 | 144 | The transform is specified in the transform-parameter file. |
142 | 145 |
|
143 | | - Example:: |
| 146 | + Example |
| 147 | + ------- |
144 | 148 |
|
145 | 149 | >>> from nipype.interfaces.elastix import ApplyWarp |
146 | 150 | >>> reg = ApplyWarp() |
147 | 151 | >>> reg.inputs.moving_image = 'moving1.nii' |
148 | 152 | >>> reg.inputs.transform_file = 'TransformParameters.0.txt' |
149 | 153 | >>> reg.cmdline |
150 | 154 | 'transformix -in moving1.nii -out ./ -tp TransformParameters.0.txt' |
| 155 | +
|
| 156 | +
|
151 | 157 | """ |
152 | 158 |
|
153 | 159 | _cmd = 'transformix' |
@@ -185,6 +191,8 @@ class AnalyzeWarp(CommandLine): |
185 | 191 | >>> reg.inputs.transform_file = 'TransformParameters.0.txt' |
186 | 192 | >>> reg.cmdline |
187 | 193 | 'transformix -def all -jac all -jacmat all -out ./ -tp TransformParameters.0.txt' |
| 194 | +
|
| 195 | +
|
188 | 196 | """ |
189 | 197 |
|
190 | 198 | _cmd = 'transformix -def all -jac all -jacmat all' |
@@ -212,17 +220,20 @@ class PointsWarpOutputSpec(TraitedSpec): |
212 | 220 | warped_file = File(desc='input points displaced in fixed image domain') |
213 | 221 |
|
214 | 222 | class PointsWarp(CommandLine): |
215 | | - """Use `transformix` to apply a transform on an input point set. |
| 223 | + """Use ``transformix`` to apply a transform on an input point set. |
216 | 224 | The transform is specified in the transform-parameter file. |
217 | 225 |
|
218 | | - Example:: |
| 226 | + Example |
| 227 | + ------- |
219 | 228 |
|
220 | 229 | >>> from nipype.interfaces.elastix import PointsWarp |
221 | 230 | >>> reg = PointsWarp() |
222 | 231 | >>> reg.inputs.points_file = 'surf1.vtk' |
223 | 232 | >>> reg.inputs.transform_file = 'TransformParameters.0.txt' |
224 | 233 | >>> reg.cmdline |
225 | 234 | 'transformix -out ./ -def surf1.vtk -tp TransformParameters.0.txt' |
| 235 | +
|
| 236 | +
|
226 | 237 | """ |
227 | 238 |
|
228 | 239 | _cmd = 'transformix' |
|
0 commit comments