From e3458864ab3bc39e0996651c1b9d20f37f02753e Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Thu, 9 Apr 2020 10:54:22 +0200
Subject: [PATCH] Divide through number of projections on backprojection

---
 src/pyronn_torch/conebeam.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pyronn_torch/conebeam.py b/src/pyronn_torch/conebeam.py
index 32f126f..278d2a5 100644
--- a/src/pyronn_torch/conebeam.py
+++ b/src/pyronn_torch/conebeam.py
@@ -163,7 +163,7 @@ class ConeBeamProjector:
             tuple(map(torch.from_numpy, inv_matrices))).cuda().contiguous()
         self._source_points = torch.stack(
             tuple(map(torch.from_numpy, source_points))).cuda().contiguous()
-        self._projection_multiplier = 1.
+        self._projection_multiplier = 1. / self._projection_matrices.shape[0]
 
     @property
     def projection_matrices(self):
-- 
GitLab