Skip to content

Commit 7f7c288

Browse files
committed
use OSEM image to determine FOV mask
1 parent 08f9808 commit 7f7c288

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

main_SVRG.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def __init__(
134134
self._adjoint_ones += self._obj_funs[i].get_subset_sensitivity(0)
135135

136136
self._fov_mask = self.x.get_uniform_copy(0)
137-
tmp = 1.0 * (self._adjoint_ones.as_array() > 0)
137+
# tmp = 1.0 * (self._adjoint_ones.as_array() > 0)
138+
tmp = 1.0 * (data.OSEM_image.as_array() > 0)
138139
self._fov_mask.fill(tmp)
139140

140141
# add a small number in the adjoint ones outside the FOV to avoid NaN in division

test_rdp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def get_image(fname):
386386
print(srcdir)
387387
data = get_data(srcdir=srcdir, outdir=outdir)
388388

389-
print(data.acquired_data.shape)
389+
np.save(f"{ds}.npy", data.OSEM_image.as_array())
390390

391391
# if image_type == "osem":
392392
# x = data.OSEM_image

0 commit comments

Comments
 (0)