Skip to content

Commit c6c9075

Browse files
author
Georg Schramm
committed
pass image origin when back projecting sens.
1 parent e86b74c commit c6c9075

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

python/02_reconstruct_petsird.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def get_params_hash(
259259
all_detector_centers,
260260
img_shape,
261261
voxel_size,
262+
img_origin,
262263
verbose=verbose,
263264
tof=tof,
264265
xp=xp,

python/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def backproject_efficiencies(
9090
all_detector_centers: list[np.ndarray],
9191
img_shape: tuple[int, int, int],
9292
voxel_size: tuple[float, float, float],
93+
img_origin: np.ndarray, # xp.array
9394
tof: bool = False,
9495
verbose: bool = False,
9596
xp: ModuleType = np,
@@ -234,7 +235,7 @@ def backproject_efficiencies(
234235
for i_mod_1 in range(num_modules_1):
235236

236237
# get the row of the SGID LUT for the current module type
237-
sgids = all_module_pair_sgidluts[0][0][i_mod_1].copy()
238+
sgids = all_module_pair_sgidluts[mod_type_1][mod_type_2][i_mod_1].copy()
238239

239240
# neglect the lower triangle of the SGID LUT to make sure we
240241
# only back-project every module pair once
@@ -359,6 +360,7 @@ def backproject_efficiencies(
359360
end_coords,
360361
img_shape,
361362
voxel_size,
363+
img_origin=img_origin,
362364
)
363365

364366
if tof:

0 commit comments

Comments
 (0)