/
blockmatch.txt
458 lines (262 loc) · 12.8 KB
/
blockmatch.txt
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
.. _blockmatch:
blockmatch
**********
There are 4 forms of this command.
:code:`blockmatch(reference image, deformed image, xmin, xmax, xstep, ymin, ymax, ystep, zmin, zmax, zstep, initial shift, file name prefix, comparison radius, subpixel accuracy)`
===================================================================================================================================================================================
Calculates displacement field between two images. NOTE: This command is deprecated as it forcibly saves the results to disk. Consider using the version with output to variables.
This command cannot be used in the distributed processing mode. If you need it, please contact the authors.
Arguments
---------
reference image [input]
~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Reference image (non-moving image).
deformed image [input]
~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Deformed image (image to register to non-moving image).
xmin [input]
~~~~~~~~~~~~
**Data type:** integer
X-coordinate of the first calculation point in the reference image.
xmax [input]
~~~~~~~~~~~~
**Data type:** integer
X-coordinate of the last calculation point in the reference image.
xstep [input]
~~~~~~~~~~~~~
**Data type:** integer
Step between calculation points in x-direction.
ymin [input]
~~~~~~~~~~~~
**Data type:** integer
Y-coordinate of the first calculation point in the reference image.
ymax [input]
~~~~~~~~~~~~
**Data type:** integer
Y-coordinate of the last calculation point in the reference image.
ystep [input]
~~~~~~~~~~~~~
**Data type:** integer
Step between calculation points in y-direction.
zmin [input]
~~~~~~~~~~~~
**Data type:** integer
Z-coordinate of the first calculation point in the reference image.
zmax [input]
~~~~~~~~~~~~
**Data type:** integer
Z-coordinate of the last calculation point in the reference image.
zstep [input]
~~~~~~~~~~~~~
**Data type:** integer
Step between calculation points in z-direction.
initial shift [input]
~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component real vector
Initial shift between the images.
file name prefix [input]
~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** string
Prefix (and path) of files to write. The command will save point grid in the reference image, corresponding points in the deformed image, and goodness-of-fit. If the files exists, the current contents are erased.
comparison radius [input]
~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
**Default value:** "[25, 25, 25]"
Radius of comparison region.
subpixel accuracy [input]
~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** string
**Default value:** centroid
Subpixel accuracy mode. Can be 'none', 'quadratic', or 'centroid'.
See also
--------
:ref:`blockmatch`, :ref:`blockmatchmemsave`, :ref:`pullback`, :ref:`pointstodeformed`
:code:`blockmatch(reference image, deformed image, x grid, y grid, z grid, initial shift, file name prefix, coarse comparison radius, coarse binning, fine comparison radius, fine binning, subpixel accuracy)`
===============================================================================================================================================================================================================
Calculates displacement field between two images with two-step multi-resolution approach, where coarse displacement is first calculated with larger block size (and binning) and the result is refined in second phase with smaller block size (and binning). NOTE: This command is deprecated as it forcibly saves the results to disk. Consider using the version with output to variables.
This command cannot be used in the distributed processing mode. If you need it, please contact the authors.
Arguments
---------
reference image [input]
~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Reference image (non-moving image).
deformed image [input]
~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Deformed image (image to register to non-moving image).
x grid [input]
~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Calculation point grid definition in X-direction. The format is [start coordinate, end coordinate, step].
y grid [input]
~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Calculation point grid definition in Y-direction. The format is [start coordinate, end coordinate, step].
z grid [input]
~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Calculation point grid definition in Z-direction. The format is [start coordinate, end coordinate, step].
initial shift [input]
~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component real vector
Initial shift between the images.
file name prefix [input]
~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** string
Prefix (and path) of files to write. The command will save point grid in the reference image, corresponding points in the deformed image, and goodness-of-fit. If the files exists, the current contents are erased.
coarse comparison radius [input]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
**Default value:** "[25, 25, 25]"
Radius of comparison region for coarse matching.
coarse binning [input]
~~~~~~~~~~~~~~~~~~~~~~
**Data type:** positive integer
**Default value:** 2
Amount of resolution reduction in coarse matching phase.
fine comparison radius [input]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
**Default value:** "[10, 10, 10]"
Radius of comparison region for fine (full-resolution) matching.
fine binning [input]
~~~~~~~~~~~~~~~~~~~~
**Data type:** positive integer
**Default value:** 1
Amount of resolution reduction in fine matching phase. Set to same value than coarse binning to skip fine matching phase.
subpixel accuracy [input]
~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** string
**Default value:** centroid
Subpixel accuracy mode. Can be 'none', 'quadratic', or 'centroid'.
See also
--------
:ref:`blockmatch`, :ref:`blockmatchmemsave`, :ref:`pullback`, :ref:`pointstodeformed`
:code:`blockmatch(reference image, deformed image, grid start, grid step, grid max, x, y, z, initial shift, comparison radius, subpixel accuracy)`
==================================================================================================================================================
Calculates displacement field between two images.
This command cannot be used in the distributed processing mode. If you need it, please contact the authors.
Arguments
---------
reference image [input]
~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Reference image (non-moving image).
deformed image [input]
~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Deformed image (image to register to non-moving image).
grid start [input]
~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Start of reference point grid in the coordinates of the reference image.
grid step [input]
~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Grid step in each coordinate direction.
grid max [input]
~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
End of reference point grid in the coordinates of the reference image. The grid will contain floor((max - start) / step) + 1 points in each coordinate direction. Difference between maximum and minimum does not need to be divisible by step.
x [output]
~~~~~~~~~~
**Data type:** float32 image
At output, contains the estimated X-coordinate of each reference grid point in the coordinates of the deformed image. Dimensions of this image are set to point counts in the reference grid.
y [output]
~~~~~~~~~~
**Data type:** float32 image
At output, contains the estimated Y-coordinate of each reference grid point in the coordinates of the deformed image. Dimensions of this image are set to point counts in the reference grid.
z [output]
~~~~~~~~~~
**Data type:** float32 image
At output, contains the estimated Z-coordinate of each reference grid point in the coordinates of the deformed image. Dimensions of this image are set to point counts in the reference grid.
initial shift [input]
~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component real vector
Initial shift between the images.
comparison radius [input]
~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
**Default value:** "[25, 25, 25]"
Radius of comparison region.
subpixel accuracy [input]
~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** string
**Default value:** centroid
Subpixel accuracy mode. Can be 'none', 'quadratic', or 'centroid'.
See also
--------
:ref:`blockmatch`, :ref:`blockmatchmemsave`, :ref:`pullback`, :ref:`pointstodeformed`
:code:`blockmatch(reference image, deformed image, grid start, grid step, grid max, x, y, z, initial shift, coarse comparison radius, coarse binning, fine comparison radius, fine binning, subpixel accuracy)`
===============================================================================================================================================================================================================
Calculates displacement field between two images with two-step multi-resolution approach, where coarse displacement is first calculated with larger block size (and binning) and the result is refined in second phase with smaller block size (and binning).
This command cannot be used in the distributed processing mode. If you need it, please contact the authors.
Arguments
---------
reference image [input]
~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Reference image (non-moving image).
deformed image [input]
~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Deformed image (image to register to non-moving image).
grid start [input]
~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Start of reference point grid in the coordinates of the reference image.
grid step [input]
~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Grid step in each coordinate direction.
grid max [input]
~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
End of reference point grid in the coordinates of the reference image. The grid will contain floor((max - start) / step) + 1 points in each coordinate direction. Difference between maximum and minimum does not need to be divisible by step.
x [output]
~~~~~~~~~~
**Data type:** float32 image
At output, contains the estimated X-coordinate of each reference grid point in the coordinates of the deformed image. Dimensions of this image are set to point counts in the reference grid.
y [output]
~~~~~~~~~~
**Data type:** float32 image
At output, contains the estimated Y-coordinate of each reference grid point in the coordinates of the deformed image. Dimensions of this image are set to point counts in the reference grid.
z [output]
~~~~~~~~~~
**Data type:** float32 image
At output, contains the estimated Z-coordinate of each reference grid point in the coordinates of the deformed image. Dimensions of this image are set to point counts in the reference grid.
initial shift [input]
~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component real vector
Initial shift between the images.
coarse comparison radius [input]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
**Default value:** "[25, 25, 25]"
Radius of comparison region for coarse matching.
coarse binning [input]
~~~~~~~~~~~~~~~~~~~~~~
**Data type:** positive integer
**Default value:** 2
Amount of resolution reduction in coarse matching phase.
fine comparison radius [input]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
**Default value:** "[10, 10, 10]"
Radius of comparison region for fine (full-resolution) matching.
fine binning [input]
~~~~~~~~~~~~~~~~~~~~
**Data type:** positive integer
**Default value:** 1
Amount of resolution reduction in fine matching phase. Set to same value than coarse binning to skip fine matching phase.
subpixel accuracy [input]
~~~~~~~~~~~~~~~~~~~~~~~~~
**Data type:** string
**Default value:** centroid
Subpixel accuracy mode. Can be 'none', 'quadratic', or 'centroid'.
See also
--------
:ref:`blockmatch`, :ref:`blockmatchmemsave`, :ref:`pullback`, :ref:`pointstodeformed`