File: phantom.mk

package info (click to toggle)
bart 0.9.00-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,040 kB
  • sloc: ansic: 116,116; python: 1,329; sh: 726; makefile: 639; javascript: 589; cpp: 106
file content (354 lines) | stat: -rw-r--r-- 15,064 bytes parent folder | download
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

$(TESTS_OUT)/shepplogan.ra: phantom
	$(TOOLDIR)/phantom $@

$(TESTS_OUT)/shepplogan_ksp.ra: phantom
	$(TOOLDIR)/phantom -k $@

$(TESTS_OUT)/shepplogan_coil.ra: phantom
	$(TOOLDIR)/phantom -s8 $@

$(TESTS_OUT)/shepplogan_coil_ksp.ra: phantom
	$(TOOLDIR)/phantom -s8 -k $@

$(TESTS_OUT)/coils.ra: phantom
	$(TOOLDIR)/phantom -S8 $@

$(TESTS_OUT)/shepplogan_coil_large.ra: phantom
	$(TOOLDIR)/phantom --coil HEAD_3D_64CH -s64 $@

$(TESTS_OUT)/shepplogan_coil_ksp_large.ra: phantom
	$(TOOLDIR)/phantom --coil HEAD_3D_64CH -s64 -k $@

$(TESTS_OUT)/coils_large.ra: phantom
	$(TOOLDIR)/phantom --coil HEAD_3D_64CH -S64 $@

tests/test-phantom-ksp: fft nrmse $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/shepplogan_ksp.ra
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/fft -i 7 $(TESTS_OUT)/shepplogan_ksp.ra shepplogan_img.ra			;\
	$(TOOLDIR)/nrmse -t 0.22 $(TESTS_OUT)/shepplogan.ra shepplogan_img.ra			;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-phantom-noncart: traj phantom reshape nrmse $(TESTS_OUT)/shepplogan_ksp.ra
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/traj traj.ra									;\
	$(TOOLDIR)/phantom -k -t traj.ra shepplogan_ksp2.ra					;\
	$(TOOLDIR)/reshape 7 128 128 1 shepplogan_ksp2.ra shepplogan_ksp3.ra			;\
	$(TOOLDIR)/nrmse -t 0. $(TESTS_OUT)/shepplogan_ksp.ra shepplogan_ksp3.ra		;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP) 
	touch $@


tests/test-phantom-coil: fmac nrmse $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/shepplogan_coil.ra $(TESTS_OUT)/coils.ra
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/fmac $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/coils.ra sl_coil2.ra		;\
	$(TOOLDIR)/nrmse -t 0. $(TESTS_OUT)/shepplogan_coil.ra sl_coil2.ra			;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-phantom-ksp-coil: fft nrmse $(TESTS_OUT)/shepplogan_coil.ra $(TESTS_OUT)/shepplogan_coil_ksp.ra
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/fft -i 7 $(TESTS_OUT)/shepplogan_coil_ksp.ra shepplogan_cimg.ra		;\
	$(TOOLDIR)/nrmse -t 0.22 $(TESTS_OUT)/shepplogan_coil.ra shepplogan_cimg.ra		;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-coil-large: fmac nrmse $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/shepplogan_coil_large.ra $(TESTS_OUT)/coils_large.ra
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/fmac $(TESTS_OUT)/shepplogan.ra $(TESTS_OUT)/coils_large.ra sl_coil2.ra		;\
	$(TOOLDIR)/nrmse -t 0. $(TESTS_OUT)/shepplogan_coil_large.ra sl_coil2.ra			;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-phantom-ksp-coil-large: fft nrmse $(TESTS_OUT)/shepplogan_coil_large.ra $(TESTS_OUT)/shepplogan_coil_ksp_large.ra
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/fft -i 7 $(TESTS_OUT)/shepplogan_coil_ksp_large.ra shepplogan_cimg.ra		;\
	$(TOOLDIR)/nrmse -t 0.22 $(TESTS_OUT)/shepplogan_coil_large.ra shepplogan_cimg.ra		;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-bart: fft nrmse phantom
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -B -k k.ra								;\
	$(TOOLDIR)/fft -i 3 k.ra x.ra								;\
	$(TOOLDIR)/phantom -B r.ra								;\
	$(TOOLDIR)/nrmse -t 0.21 r.ra x.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-phantom-bart-basis: nrmse phantom fmac
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -B -k k0.ra								;\
	$(TOOLDIR)/phantom -B -b -k k1.ra							;\
	$(TOOLDIR)/fmac -s 64 k1.ra k2.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 k0.ra k2.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-phantom-basis: nrmse phantom fmac
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -T -k k0.ra								;\
	$(TOOLDIR)/phantom -T -b -k k1.ra							;\
	$(TOOLDIR)/fmac -s 64 k1.ra k2.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 k0.ra k2.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-phantom-random-tubes: nrmse phantom fmac
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -N 5 -k k0.ra							;\
	$(TOOLDIR)/phantom -N 5 -b -k k1.ra							;\
	$(TOOLDIR)/fmac -s 64 k1.ra k2.ra							;\
	$(TOOLDIR)/nrmse -t 0. k0.ra k2.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-NIST: fft nrmse phantom
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --NIST -k k.ra								;\
	$(TOOLDIR)/fft -i 3 k.ra x.ra								;\
	$(TOOLDIR)/phantom --NIST r.ra								;\
	$(TOOLDIR)/nrmse -t 0.14 r.ra x.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-NIST-basis: nrmse phantom fmac
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --NIST -k k0.ra							;\
	$(TOOLDIR)/phantom --NIST -b 11 -k k1.ra						;\
	$(TOOLDIR)/fmac -s 64 k1.ra k2.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 k0.ra k2.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-tubes: phantom flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 -T o.ra					;\
	$(TOOLDIR)/flip 3 o.ra of.ra								;\
	$(TOOLDIR)/phantom -x 21 -T --rotation-angle 180 r.ra					;\
	$(TOOLDIR)/nrmse -t 0.000001 of.ra r.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-tubes-kspace: phantom flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 -k -T o.ra					;\
	$(TOOLDIR)/flip 3 o.ra of.ra								;\
	$(TOOLDIR)/phantom -x 21 -k -T --rotation-angle 180 r.ra					;\
	$(TOOLDIR)/nrmse -t 0.000001 of.ra r.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-tubes-basis: phantom flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 -b -T o.ra					;\
	$(TOOLDIR)/flip 3 o.ra of.ra								;\
	$(TOOLDIR)/phantom -x 21 -b -T --rotation-angle 180 r.ra					;\
	$(TOOLDIR)/nrmse -t 0.000001 of.ra r.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-NIST: phantom flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 --NIST o.ra					;\
	$(TOOLDIR)/flip 3 o.ra of.ra								;\
	$(TOOLDIR)/phantom -x 21 --NIST --rotation-angle 180 r.ra					;\
	$(TOOLDIR)/nrmse -t 0.000001 of.ra r.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-NIST-basis: phantom flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 --NIST -b o.ra					;\
	$(TOOLDIR)/flip 3 o.ra of.ra								;\
	$(TOOLDIR)/phantom -x 21 --NIST -b --rotation-angle 180 r.ra					;\
	$(TOOLDIR)/nrmse -t 0.000001 of.ra r.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-NIST-kspace: phantom flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 --NIST -k o.ra					;\
	$(TOOLDIR)/flip 3 o.ra of.ra								;\
	$(TOOLDIR)/phantom -x 21 --NIST -k --rotation-angle 180 r.ra					;\
	$(TOOLDIR)/nrmse -t 0.000001 of.ra r.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-tubes-multistep: phantom slice flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 -T --rotation-steps 4 --rotation-angle 90 o.ra					;\
	$(TOOLDIR)/slice 10 0 o.ra o2.ra							;\
	$(TOOLDIR)/flip 3 o2.ra o2f.ra								;\
	$(TOOLDIR)/slice 10 2 o.ra o3.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 o2f.ra o3.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-tubes-kspace-multistep: phantom slice flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 -k -T --rotation-steps 4 --rotation-angle 90 o.ra					;\
	$(TOOLDIR)/slice 10 0 o.ra o2.ra							;\
	$(TOOLDIR)/flip 3 o2.ra o2f.ra								;\
	$(TOOLDIR)/slice 10 2 o.ra o3.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 o2f.ra o3.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-tubes-basis-multistep: phantom fmac slice flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 -k -T k.ra					;\
	$(TOOLDIR)/phantom -x 21 -k -b -T --rotation-steps 4 --rotation-angle 90 k2.ra					;\
	$(TOOLDIR)/fmac -s 64 k2.ra o.ra							;\
	$(TOOLDIR)/slice 10 1 o.ra o2.ra							;\
	$(TOOLDIR)/flip 3 k.ra kf.ra								;\
	$(TOOLDIR)/nrmse -t 0.000001 kf.ra o2.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-NIST-multistep: phantom slice flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 --NIST --rotation-steps 4 --rotation-angle 90 o.ra					;\
	$(TOOLDIR)/slice 10 0 o.ra o2.ra							;\
	$(TOOLDIR)/flip 3 o2.ra o2f.ra								;\
	$(TOOLDIR)/slice 10 2 o.ra o3.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 o2f.ra o3.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-NIST-kspace-multistep: phantom slice flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 -k --NIST --rotation-steps 4 --rotation-angle 90 o.ra					;\
	$(TOOLDIR)/slice 10 0 o.ra o2.ra							;\
	$(TOOLDIR)/flip 3 o2.ra o2f.ra								;\
	$(TOOLDIR)/slice 10 2 o.ra o3.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 o2f.ra o3.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-NIST-basis-multistep: phantom fmac slice flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 -k --NIST k.ra					;\
	$(TOOLDIR)/phantom -x 21 -k -b --NIST --rotation-steps 4 --rotation-angle 90 k2.ra					;\
	$(TOOLDIR)/fmac -s 64 k2.ra o.ra							;\
	$(TOOLDIR)/slice 10 1 o.ra o2.ra							;\
	$(TOOLDIR)/flip 3 k.ra kf.ra								;\
	$(TOOLDIR)/nrmse -t 0.000001 kf.ra o2.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-SONAR: fft nrmse phantom
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --SONAR -k k.ra								;\
	$(TOOLDIR)/fft -i 3 k.ra x.ra								;\
	$(TOOLDIR)/phantom --SONAR r.ra								;\
	$(TOOLDIR)/nrmse -t 0.14 r.ra x.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-SONAR-basis: nrmse phantom fmac
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --SONAR -k k0.ra							;\
	$(TOOLDIR)/phantom --SONAR -b 11 -k k1.ra						;\
	$(TOOLDIR)/fmac -s 64 k1.ra k2.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 k0.ra k2.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-SONAR: phantom flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 --SONAR o.ra					;\
	$(TOOLDIR)/flip 3 o.ra of.ra								;\
	$(TOOLDIR)/phantom -x 21 --SONAR --rotation-angle 180 r.ra					;\
	$(TOOLDIR)/nrmse -t 0.000001 of.ra r.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-rotation-SONAR-multistep: phantom slice flip nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -x 21 --SONAR --rotation-steps 4 --rotation-angle 90 o.ra					;\
	$(TOOLDIR)/slice 10 0 o.ra o2.ra							;\
	$(TOOLDIR)/flip 3 o2.ra o2f.ra								;\
	$(TOOLDIR)/slice 10 2 o.ra o3.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 o2f.ra o3.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-brain: fft nrmse phantom
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --BRAIN -k k.ra								;\
	$(TOOLDIR)/fft -i 3 k.ra x.ra								;\
	$(TOOLDIR)/phantom --BRAIN r.ra								;\
	$(TOOLDIR)/nrmse -t 0.2 r.ra x.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-BRAIN-basis: phantom index extract fmac nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --BRAIN -k k0.ra							;\
	$(TOOLDIR)/phantom --BRAIN -b -k k1.ra							;\
	$(TOOLDIR)/index 6 5 ind.ra 								;\
	$(TOOLDIR)/extract 6 1 5 ind.ra ind2.ra 						;\
	$(TOOLDIR)/fmac -s 64 k1.ra ind2.ra k2.ra						;\
	$(TOOLDIR)/nrmse -t 0.000001 k0.ra k2.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-FILE: fft nrmse phantom
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --FILE $(TESTS_DIR)/geom/flower -k k.ra			;\
	$(TOOLDIR)/fft -i 3 k.ra x.ra								;\
	$(TOOLDIR)/phantom --FILE $(TESTS_DIR)/geom/flower r.ra				;\
	$(TOOLDIR)/nrmse -t 0.16 r.ra x.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-FILE-basis: fmac nrmse phantom
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --FILE $(TESTS_DIR)/geom/flower2 -k k.ra			;\
	$(TOOLDIR)/phantom --FILE $(TESTS_DIR)/geom/flower2 -b -k k1.ra			;\
	$(TOOLDIR)/fmac -s 64 k1.ra k2.ra							;\
	$(TOOLDIR)/nrmse -t 0.000001 k.ra k2.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-FILE-coil-large: fmac nrmse phantom $(TESTS_OUT)/coils_large.ra
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom --FILE $(TESTS_DIR)/geom/flower r.ra			;\
	$(TOOLDIR)/fmac r.ra $(TESTS_OUT)/coils_large.ra sl_coil2.ra				;\
	$(TOOLDIR)/phantom --coil HEAD_3D_64CH -s64 --FILE $(TESTS_DIR)/geom/flower rc.ra		;\
	$(TOOLDIR)/nrmse -t 0.000001 rc.ra sl_coil2.ra						;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

tests/test-phantom-ellipsoid: nrmse phantom fft slice
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/phantom -k -x 32 -3 --ELLIPSOID --ellipsoid_center 16:16:5 --ellipsoid_axes 10:5:20 --rotation-angle 30 k.ra		;\
	$(TOOLDIR)/fft -i 7 k.ra x.ra ;\
	$(TOOLDIR)/slice 2 5 x.ra x_s.ra ;\
	$(TOOLDIR)/phantom -x 32 --ELLIPSOID --ellipsoid_center 16:16:5 --ellipsoid_axes 10:5:20 --rotation-angle 30 x2d.ra ;\
	$(TOOLDIR)/nrmse -t 0.22 x2d.ra x_s.ra	;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

TESTS += tests/test-phantom-ksp tests/test-phantom-noncart tests/test-phantom-coil tests/test-phantom-ksp-coil
TESTS += tests/test-phantom-bart tests/test-phantom-bart-basis
TESTS += tests/test-phantom-basis tests/test-phantom-random-tubes
TESTS += tests/test-phantom-NIST tests/test-phantom-NIST-basis
TESTS += tests/test-phantom-rotation-tubes tests/test-phantom-rotation-tubes-kspace tests/test-phantom-rotation-tubes-basis
TESTS += tests/test-phantom-rotation-NIST tests/test-phantom-rotation-NIST-kspace tests/test-phantom-rotation-NIST-basis
TESTS += tests/test-phantom-rotation-tubes-multistep tests/test-phantom-rotation-tubes-kspace-multistep tests/test-phantom-rotation-tubes-basis-multistep
TESTS += tests/test-phantom-rotation-NIST-multistep tests/test-phantom-rotation-NIST-kspace-multistep tests/test-phantom-rotation-NIST-basis-multistep
TESTS += tests/test-phantom-SONAR tests/test-phantom-SONAR-basis tests/test-phantom-rotation-SONAR tests/test-phantom-rotation-SONAR-multistep
TESTS += tests/test-phantom-brain tests/test-phantom-BRAIN-basis
TESTS += tests/test-phantom-coil-large tests/test-phantom-ksp-coil-large
TESTS += tests/test-phantom-FILE tests/test-phantom-FILE-basis tests/test-phantom-FILE-coil-large
TESTS += tests/test-phantom-ellipsoid