Skip to content

Commit 190beb6

Browse files
committed
Use radon_transform function to compute sinogram
1 parent d145a46 commit 190beb6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/image/images/compare.png

-48 Bytes
Loading

examples/image/train.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,10 @@ def evaluate_model(model: ment.MENT) -> dict:
318318
for key in ["sinogram", "image"]:
319319
results[method][key] = None
320320

321+
321322
# Form true image and sinogram
322323
image_true = grid_values_true.copy()
323-
projections = ment.unravel(model.projections)
324-
sinogram_true = np.vstack([projection.values for projection in projections])
325-
sinogram_true = sinogram_true.T
326-
324+
sinogram_true = radon_transform(image_true, angles)
327325
results["true"]["sinogram"] = sinogram_true.copy()
328326
results["true"]["image"] = image_true.copy()
329327

0 commit comments

Comments
 (0)