Skip to content

Commit cd9ecc1

Browse files
author
Georg Schramm
committed
save backprojections
1 parent 02e0b91 commit cd9ecc1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/02_reconstruct_petsird.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@
325325

326326
non_tof_backproj = proj.adjoint(xp.ones(coords0.shape[0], dtype="float32"))
327327

328+
xp.save(Path(fname).with_suffix(".non_tof_backproj.npy"), non_tof_backproj)
329+
328330
#### HACK assumes same TOF parameters for all module type pairs
329331
sigma_tof = scanner_info.tof_resolution[0][0] / 2.35
330332
tof_bin_edges = scanner_info.tof_bin_edges[0][0].edges
@@ -341,6 +343,8 @@
341343

342344
tof_backproj = proj.adjoint(xp.ones(coords0.shape[0], dtype="float32"))
343345

346+
xp.save(Path(fname).with_suffix(".tof_backproj.npy"), tof_backproj)
347+
344348
del proj
345349

346350
# %%
@@ -402,6 +406,7 @@
402406
end="\r",
403407
)
404408
lm_exp = effs[sl] * lm_subset_projs[i_subset](res_model(recon))
409+
405410
tmp = num_subsets * res_model.adjoint(
406411
lm_subset_projs[i_subset].adjoint(effs[sl] / lm_exp)
407412
)

0 commit comments

Comments
 (0)